mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-03 02:17:39 +00:00
examples now using SDL_ALPHA_OPAQUE(_FLOAT) for opaque alpha value
This commit is contained in:
parent
63ef5a2369
commit
21c91d5535
19 changed files with 38 additions and 38 deletions
|
@ -212,7 +212,7 @@ int main(int argc, char *argv[])
|
|||
SDL_SetWindowSize(sdlWindow, SDL_lround(640. * scale), SDL_lround(480. * scale));
|
||||
|
||||
if (qtWindow.isVisible()) {
|
||||
SDL_SetRenderDrawColor(sdlRenderer, 0, 0, 255, 255);
|
||||
SDL_SetRenderDrawColor(sdlRenderer, 0, 0, 255, SDL_ALPHA_OPAQUE);
|
||||
SDL_RenderClear(sdlRenderer);
|
||||
SDL_RenderPresent(sdlRenderer);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue