fbsim

framebuffer trivial "simulator"
git clone git://deadbeef.fr/fbsim.git
Log | Files | Refs | README

commit 4e67c25846e9bbe88b960d236fcc2f798fae7b66
parent 6bb41b5732c02dc61ae0f928902e5c1aa84b705d
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Fri, 18 Sep 2020 15:29:45 +0200

grooming

Diffstat:
Msrc/main.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -186,7 +186,7 @@ int main(int argc, char *argv[]) } if( SDL_Init( SDL_INIT_VIDEO ) == -1 ) - { + { fprintf( stderr, "Could not initialize SDL: %s.\n", SDL_GetError() ); exit( EXIT_FAILURE ); } @@ -199,7 +199,7 @@ int main(int argc, char *argv[]) //not using SDL_RESIZABLE: goal is to "emulate" a framebuffer //using SDL_NOFRAME: goal is to "emulate" a framebuffer (no decoration) // ^ this was done originally, but is more annoying than useful - screen = SDL_SetVideoMode( xres, yres, bpp, 0 /*SDL_NOFRAME*/ ); + screen = SDL_SetVideoMode( xres, yres, bpp, 0 /*SDL_NOFRAME*/ ); if( NULL == screen ) { fprintf( stderr, "Failed to initialize window: %s.\n", SDL_GetError() );