mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-23 17:43:04 +00:00
warn
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@671 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -210,7 +210,8 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
|
||||
XSelectInput(r->display, r->window, mask);
|
||||
|
||||
if(x != MwDEFAULT || y != MwDEFAULT) {
|
||||
MwLLGetXYWH(r, &px, &py, &width, &height);
|
||||
unsigned int dummy;
|
||||
MwLLGetXYWH(r, &px, &py, &dummy, &dummy);
|
||||
|
||||
if(x == MwDEFAULT) x = px;
|
||||
if(y == MwDEFAULT) y = py;
|
||||
@@ -292,8 +293,7 @@ void MwLLColorUpdate(MwLL handle, MwLLColor c, int r, int g, int b) {
|
||||
c->blue = b;
|
||||
}
|
||||
void MwLLGetXYWH(MwLL handle, int* x, int* y, unsigned int* w, unsigned int* h) {
|
||||
Window root, parent;
|
||||
Window child;
|
||||
Window root;
|
||||
unsigned int border, depth;
|
||||
|
||||
XGetGeometry(handle->display, handle->window, &root, x, y, w, h, &border, &depth);
|
||||
|
||||
Reference in New Issue
Block a user