fix(linux): segmentation fault on draw window with minimal size (#200) (#201)

Signed-off-by: Vasilyy Balyasnyy <v.balyasniy@omprussia.com>

Co-authored-by: Vasilyy Balyasnyy <v.balyasniy@omprussia.com>
This commit is contained in:
Vasilyy
2020-03-13 10:27:18 +08:00
committed by GitHub
co-authored by Vasilyy Balyasnyy
parent a10df88d99
commit fa23f89a16
+1 -1
View File
@@ -125,7 +125,7 @@ static void X11Surface_OnResize(LCUI_Surface s, int width, int height)
int depth;
XGCValues gcv;
Visual *visual;
if (width == s->width && height == s->height) {
if (width == s->width && height == s->height && s->ximage && s->gc) {
return;
}
if (s->ximage) {