mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 11:01:57 +08:00
initial screen resolution in shared resource segment
This commit is contained in:
@@ -486,6 +486,8 @@ int InitGUI (int argc, const char* agr[])
|
||||
*SHAREDRES_VIDEO_EXDRIVER = 0;
|
||||
|
||||
SHAREDRES_VIDEO_DPI = __gal_screen->dpi;
|
||||
SHAREDRES_VIDEO_HRES = __gal_screen->w;
|
||||
SHAREDRES_VIDEO_VRES = __gal_screen->h;
|
||||
SHAREDRES_VIDEO_DEPTH = __gal_screen->format->BytesPerPixel;
|
||||
SHAREDRES_VIDEO_RMASK = __gal_screen->format->Rmask;
|
||||
SHAREDRES_VIDEO_GMASK = __gal_screen->format->Gmask;
|
||||
|
||||
Reference in New Issue
Block a user