diff --git a/libs/windows/x86/SDL2.dll b/libs/windows/x86/SDL2.dll index 18d707f4..2b7e3193 100644 Binary files a/libs/windows/x86/SDL2.dll and b/libs/windows/x86/SDL2.dll differ diff --git a/libs/windows/x86_64/SDL2.dll b/libs/windows/x86_64/SDL2.dll index a65b22ce..8e0c64cb 100644 Binary files a/libs/windows/x86_64/SDL2.dll and b/libs/windows/x86_64/SDL2.dll differ diff --git a/src/dlangui/platforms/sdl/sdlapp.d b/src/dlangui/platforms/sdl/sdlapp.d index 9cbdb66d..cc727a83 100644 --- a/src/dlangui/platforms/sdl/sdlapp.d +++ b/src/dlangui/platforms/sdl/sdlapp.d @@ -302,8 +302,11 @@ class SDLWindow : Window { if (!_enableOpengl) { _renderer = SDL_CreateRenderer(_win, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); if (!_renderer) { - Log.e("SDL2: Failed to create renderer"); - return false; + _renderer = SDL_CreateRenderer(_win, -1, SDL_RENDERER_SOFTWARE); + if (!_renderer) { + Log.e("SDL2: Failed to create renderer"); + return false; + } } fixSize(); } @@ -1261,9 +1264,7 @@ class SDLPlatform : Platform { debug(DebugSDL) Log.d("SDL_WINDOWEVENT_EXPOSED - ", w.windowCaption); if (!_windowsMinimized && w.hasModalChild()) w.restoreModalChilds(); - version(linux) { - w.invalidate(); - } + w.invalidate(); break; case SDL_WINDOWEVENT_MOVED: debug(DebugSDL) Log.d("SDL_WINDOWEVENT_MOVED- ", w.windowCaption);