From 08cadfd991ff345971d674cbbba6b7fcacfdff62 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Tue, 11 Feb 2020 17:58:04 +0800 Subject: [PATCH] use GAL_CreateSurfaceForZNodeAs instead of GAL_CreateSurfaceForZNode --- src/kernel/desktop-procs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/desktop-procs.c b/src/kernel/desktop-procs.c index 47540a7c..2a09d1c9 100644 --- a/src/kernel/desktop-procs.c +++ b/src/kernel/desktop-procs.c @@ -2169,14 +2169,14 @@ static void dskHideMainWindow (PMAINWIN pWin) */ static int resize_window_surface (PMAINWIN pWin, const RECT* prcResult) { - int new_width = RECTWP(prcResult); - int new_height = RECTHP(prcResult); + int nw = RECTWP(prcResult); + int nh = RECTHP(prcResult); - if (pWin->surf->w < new_width || pWin->surf->h < new_height) { + if (pWin->surf->w < nw || pWin->surf->h < nh) { GAL_Rect rect = { 0, 0, pWin->surf->w, pWin->surf->h }; GAL_Surface* new_surf; - new_surf = GAL_CreateSurfaceForZNode (new_width, new_height); + new_surf = GAL_CreateSurfaceForZNodeAs (pWin->surf, nw, nh); if (new_surf == NULL) return -2;