mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-02-03 20:13:04 +00:00
add get screen size
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@825 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -1001,6 +1001,15 @@ static void MwLLGetCursorCoordImpl(MwLL handle, MwPoint* point) {
|
||||
point->y = ry;
|
||||
}
|
||||
|
||||
static void MwLLGetScreenSizeImpl(MwLL handle, MwRect* rect) {
|
||||
XWindowAttributes xwa;
|
||||
XGetWindowAttributes(handle->x11.display, handle->x11.window, &xwa);
|
||||
|
||||
rect->x = rect->y = 0;
|
||||
rect->width = xwa.width;
|
||||
rect->height = xwa.height;
|
||||
}
|
||||
|
||||
static void MwLLBeginStateChangeImpl(MwLL handle) {
|
||||
MwLLShow(handle, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user