Skip to content

Commit

Permalink
Fix drawbuffer initialization check
Browse files Browse the repository at this point in the history
  • Loading branch information
nextghost committed Sep 10, 2022
1 parent b910cd3 commit 3c7c2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signus/src/graphio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ int create_window(void) {
drawbuffer = SDL_CreateRGBSurfaceWithFormatFrom(pixbuffer, RES_X,
RES_Y, 8, RES_X, SDL_PIXELFORMAT_INDEX8);

if (!pixbuffer) {
if (!drawbuffer) {
DoneVideo();
return 0;
}
Expand Down

0 comments on commit 3c7c2dd

Please sign in to comment.