Skip to content

Commit

Permalink
silence faux-errors from screen clearing with cat
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Inman committed Dec 18, 2024
1 parent fcd205b commit b5c17c5
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion workspace/m17/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void PLAT_quitVideo(void) {
SDL_DestroyWindow(vid.window);
SDL_Quit();

system("cat /dev/zero > /dev/fb0");
system("cat /dev/zero > /dev/fb0 2>/dev/null");
}

void PLAT_clearVideo(SDL_Surface* screen) {
Expand Down
2 changes: 1 addition & 1 deletion workspace/magicmini/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void PLAT_quitVideo(void) {
SDL_DestroyWindow(vid.window);


// system("cat /dev/zero > /dev/fb0");
// system("cat /dev/zero > /dev/fb0 2>/dev/null");
SDL_Quit();
}

Expand Down
2 changes: 1 addition & 1 deletion workspace/my282/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void PLAT_quitVideo(void) {
SDL_DestroyRenderer(vid.renderer);
SDL_DestroyWindow(vid.window);

// system("cat /dev/zero > /dev/fb0");
// system("cat /dev/zero > /dev/fb0 2>/dev/null");
SDL_Quit();
}

Expand Down
4 changes: 2 additions & 2 deletions workspace/rg35xxplus/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ void PLAT_quitVideo(void) {
SDL_DestroyRenderer(vid.renderer);
SDL_DestroyWindow(vid.window);

// system("cat /dev/zero > /dev/fb0");
// system("cat /dev/zero > /dev/fb0 2>/dev/null");
SDL_Quit();
}

Expand Down Expand Up @@ -925,7 +925,7 @@ void PLAT_powerOff(void) {
PWR_quit();
GFX_quit();

// system("cat /dev/zero > /dev/fb0");
// system("cat /dev/zero > /dev/fb0 2>/dev/null");
// system("shutdown");
// while (1) pause(); // lolwat

Expand Down
2 changes: 1 addition & 1 deletion workspace/rgb30/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void PLAT_quitVideo(void) {
SDL_DestroyRenderer(vid.renderer);
SDL_DestroyWindow(vid.window);

// system("cat /dev/zero > /dev/fb0");
// system("cat /dev/zero > /dev/fb0 2>/dev/null");
SDL_Quit();
}

Expand Down
4 changes: 2 additions & 2 deletions workspace/tg3040/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void PLAT_quitVideo(void) {
SDL_DestroyWindow(vid.window);

SDL_Quit();
system("cat /dev/zero > /dev/fb0");
system("cat /dev/zero > /dev/fb0 2>/dev/null");
}

void PLAT_clearVideo(SDL_Surface* screen) {
Expand Down Expand Up @@ -517,7 +517,7 @@ void PLAT_powerOff(void) {
PWR_quit();
GFX_quit();

system("cat /dev/zero > /dev/fb0");
system("cat /dev/zero > /dev/fb0 2>/dev/null");
system("poweroff");
while (1) pause(); // lolwat
}
Expand Down
4 changes: 2 additions & 2 deletions workspace/tg5040/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void PLAT_quitVideo(void) {
SDL_DestroyWindow(vid.window);

SDL_Quit();
system("cat /dev/zero > /dev/fb0");
system("cat /dev/zero > /dev/fb0 2>/dev/null");
}

void PLAT_clearVideo(SDL_Surface* screen) {
Expand Down Expand Up @@ -510,7 +510,7 @@ void PLAT_powerOff(void) {
PWR_quit();
GFX_quit();

system("cat /dev/zero > /dev/fb0");
system("cat /dev/zero > /dev/fb0 2>/dev/null");
system("poweroff");
while (1) pause(); // lolwat
}
Expand Down

0 comments on commit b5c17c5

Please sign in to comment.