mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 11:01:57 +08:00
use surface width and height for screen width and height when it is the server
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user