git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@105 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-10-01 15:55:53 +00:00
commit 5d7d47907a
10 changed files with 248 additions and 21 deletions

View file

@ -27,6 +27,9 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
MwLLCreateCommon(r);
if(width < 1) width = 1;
if(height < 1) height = 1;
if(parent == NULL) {
r->display = XOpenDisplay(NULL);
p = XRootWindow(r->display, XDefaultScreen(r->display));
@ -115,6 +118,9 @@ void MwLLSetXY(MwLL handle, int x, int y) {
}
void MwLLSetWH(MwLL handle, int w, int h) {
if(w < 1) w = 1;
if(h < 1) h = 1;
XResizeWindow(handle->display, handle->window, w, h);
}