mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Avoid crash when Cmd+Q is pressed on Skia/OSX port
This commit is contained in:
parent
8edb0c0a67
commit
416951f592
@ -94,11 +94,17 @@ bool SkiaWindow::isMaximized() const
|
||||
|
||||
gfx::Size SkiaWindow::clientSize() const
|
||||
{
|
||||
if (m_impl->closing)
|
||||
return gfx::Size(0, 0);
|
||||
|
||||
return m_impl->window.clientSize;
|
||||
}
|
||||
|
||||
gfx::Size SkiaWindow::restoredSize() const
|
||||
{
|
||||
if (m_impl->closing)
|
||||
return gfx::Size(0, 0);
|
||||
|
||||
return m_impl->window.restoredSize;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user