X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=98ccd70cafb02341a04ba4f367c82bf0d5251621;hp=7d85f6171925be6137208f50461354d0dd751626;hb=bf9e47bb97f16c998644758a383209fa4d4fc87b;hpb=97d0f78c43d16fbf73ea0438148a4da781c75600 diff --git a/src/libgame/system.c b/src/libgame/system.c index 7d85f617..98ccd70c 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -363,6 +363,7 @@ void LimitScreenUpdates(boolean enable) void InitVideoDisplay(void) { SDLInitVideoDisplay(); + SDLSetDisplaySize(); } void CloseVideoDisplay(void) @@ -378,6 +379,11 @@ void InitVideoBuffer(int width, int height, int depth, boolean fullscreen) video.height = height; video.depth = GetRealDepth(depth); + video.screen_width = width; + video.screen_height = height; + video.screen_xoffset = 0; + video.screen_yoffset = 0; + video.fullscreen_available = FULLSCREEN_STATUS; video.fullscreen_enabled = FALSE; @@ -1401,16 +1407,6 @@ void SetAudioMode(boolean enabled) /* event functions */ /* ========================================================================= */ -void InitEventFilter(EventFilter filter_function) -{ - /* set event filter to filter out certain events */ -#if defined(TARGET_SDL2) - SDL_SetEventFilter(filter_function, NULL); -#else - SDL_SetEventFilter(filter_function); -#endif -} - boolean PendingEvent(void) { return (SDL_PollEvent(NULL) ? TRUE : FALSE);