use surface width and height for screen width and height when it is the server

This commit is contained in:
Vincent Wei
2020-01-21 17:38:07 +08:00
parent be2f3a2546
commit b0e780dfd8

View File

@@ -78,8 +78,14 @@ RECT GUIAPI GetScreenRect (void)
#ifdef _MGSCHEMA_COMPOSITING
rc.left = 0;
rc.top = 0;
rc.right = SHAREDRES_VIDEO_HRES;
rc.bottom = SHAREDRES_VIDEO_VRES;
if (mgIsServer) {
rc.right = __gal_screen->w;
rc.bottom = __gal_screen->h;
}
else {
rc.right = SHAREDRES_VIDEO_HRES;
rc.bottom = SHAREDRES_VIDEO_VRES;
}
#else
rc.left = 0;
rc.top = 0;