Merge branch '8.1.0-Dev' into 8.2.0-Dev

This commit is contained in:
Josh Tynjala
2023-03-20 09:44:45 -07:00
10 changed files with 87 additions and 4 deletions

View File

@@ -358,6 +358,23 @@ namespace lime {
}
bool SDLWindow::SetVisible (bool visible) {
if (visible) {
SDL_ShowWindow (sdlWindow);
} else {
SDL_HideWindow (sdlWindow);
}
return (SDL_GetWindowFlags (sdlWindow) & SDL_WINDOW_SHOWN);
}
void SDLWindow::ContextFlip () {
if (context && !sdlRenderer) {

View File

@@ -55,6 +55,7 @@ namespace lime {
virtual void SetTextInputEnabled (bool enabled);
virtual void SetTextInputRect (Rectangle *rect);
virtual const char* SetTitle (const char* title);
virtual bool SetVisible (bool visible);
virtual void WarpMouse (int x, int y);
SDL_Renderer* sdlRenderer;
SDL_Texture* sdlTexture;