Fix compilation with SDL1
This fixes two compilation errors when compiling against SDL1. At least one was brought over from master.
This commit is contained in:
parent
46a0eb0e55
commit
bdac437efc
2 changed files with 8 additions and 2 deletions
|
@ -1104,7 +1104,13 @@ bool CVideo::detect_video_settings(std::pair<int,int>& resolution, int& bpp, int
|
|||
|
||||
void CVideo::set_fullscreen(bool ison)
|
||||
{
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
if (window && isFullScreen() != ison) {
|
||||
#else
|
||||
if (frameBuffer && isFullScreen() != ison) {
|
||||
#endif
|
||||
|
||||
const std::pair<int,int>& res = preferences::resolution();
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
|
|
|
@ -251,9 +251,9 @@ private:
|
|||
class video_event_handler : public events::sdl_handler {
|
||||
public:
|
||||
virtual void handle_event(const SDL_Event &) {}
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
|
||||
virtual void handle_window_event(const SDL_Event &event);
|
||||
#endif
|
||||
|
||||
video_event_handler() : sdl_handler(false) {}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue