Skip to content

Commit

Permalink
GLSL: fix color darken on some compiler when touchoverlay off
Browse files Browse the repository at this point in the history
  • Loading branch information
palxex committed Feb 15, 2021
1 parent 05d1b07 commit 1f11cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ VIDEO_Startup(
{
BYTE pixels[4*PIXELS*PIXELS];
memset(pixels, 0, sizeof(pixels));
SDL_Surface *temp = SDL_CreateRGBSurfaceFrom(pixels, PIXELS, PIXELS, 32, PIXELS, 0, 0, 0, 0);
SDL_Surface *temp = SDL_CreateRGBSurfaceFrom(pixels, PIXELS, PIXELS, 32, PIXELS, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000);
gpTouchOverlay = SDL_CreateTextureFromSurface(gpRenderer, temp);
SDL_FreeSurface(temp);
}
Expand Down

0 comments on commit 1f11cb9

Please sign in to comment.