Changeset 054d9ed in opengl-game for game-gui-sdl.cpp


Ignore:
Timestamp:
Sep 26, 2019, 9:49:44 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
f94eea9
Parents:
91c89f7
Message:

Use SDL_WINDOW_FULLSCREEN_DESKTOP only on Windows, and SDL_WINDOW_FULLSCREEN on other platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.cpp

    r91c89f7 r054d9ed  
    44#include <queue>
    55
     6#include "compiler.hpp"
    67#include "consts.hpp"
    78
     
    5657   }
    5758
    58    uint32_t flags = SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN | (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_RESIZABLE);
     59#ifdef WINDOWS
     60    uint32_t flags = SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN | (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_RESIZABLE);
     61#else
     62    uint32_t flags = SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN | (fullscreen ? SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE);
     63#endif
    5964
    6065   window = SDL_CreateWindow(title.c_str(),
Note: See TracChangeset for help on using the changeset viewer.