mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Patched to compile on Visual Studio.
This commit is contained in:
parent
4ef6eddaf7
commit
bf03bec120
@ -47,14 +47,15 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
while (!done)
|
while (!done)
|
||||||
{
|
{
|
||||||
|
SDL_Event e;
|
||||||
|
int nothing_to_do = 1;
|
||||||
|
|
||||||
SDL_SetRenderDrawColor(renderer, 0, 0, 127, 255);
|
SDL_SetRenderDrawColor(renderer, 0, 0, 127, 255);
|
||||||
SDL_RenderClear(renderer);
|
SDL_RenderClear(renderer);
|
||||||
SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255);
|
SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255);
|
||||||
SDL_RenderFillRects(renderer, areas, SDL_arraysize(drag_areas));
|
SDL_RenderFillRects(renderer, areas, SDL_arraysize(drag_areas));
|
||||||
SDL_RenderPresent(renderer);
|
SDL_RenderPresent(renderer);
|
||||||
|
|
||||||
SDL_Event e;
|
|
||||||
int nothing_to_do = 1;
|
|
||||||
while (SDL_PollEvent(&e)) {
|
while (SDL_PollEvent(&e)) {
|
||||||
nothing_to_do = 0;
|
nothing_to_do = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user