mirror of https://github.com/buggins/dlangui.git
Merge pull request #342 from and3md/virtualbox_fix
Fix dlangui on Virtualbox and old graphics cards.
This commit is contained in:
commit
d2d94bfd0b
Binary file not shown.
Binary file not shown.
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue