From 398afe0c43045e4d394872f5480eab83236e6add Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 28 Sep 2025 08:45:58 +0000 Subject: [PATCH] aaaaaaaaaaa git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@13 b9cfdab3-6d41-4d17-bbe4-086880011989 --- include/Milsko/LowLevel.h | 1 + src/x11.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/Milsko/LowLevel.h b/include/Milsko/LowLevel.h index 42cd225..90bd765 100644 --- a/include/Milsko/LowLevel.h +++ b/include/Milsko/LowLevel.h @@ -22,6 +22,7 @@ MILSKODECL void MilskoLLDestroy(HMILSKOLL handle); MILSKODECL void MilskoLLPolygon(HMILSKOLL handle, MilskoPoint* points, int points_count, HMILSKOCOLOR color); MILSKODECL HMILSKOCOLOR MilskoLLAllocColor(HMILSKOLL handle, int r, int g, int b); MILSKODECL void MilskoLLGetXYWH(HMILSKOLL handle, int* x, int* y, unsigned int* w, unsigned int* h); +MILSKODECL void MilskoLLSetXYWH(HMILSKOLL handle, int x, int y, unsigned int w, unsigned int h); MILSKODECL int MilskoLLPending(HMILSKOLL handle); MILSKODECL void MilskoLLNextEvent(HMILSKOLL handle); MILSKODECL void MilskoLLSleep(int ms); diff --git a/src/x11.c b/src/x11.c index 81b4818..900153a 100644 --- a/src/x11.c +++ b/src/x11.c @@ -70,6 +70,10 @@ void MilskoLLGetXYWH(HMILSKOLL handle, int* x, int* y, unsigned int* w, unsigned *h = handle->height; } +void MilskoLLSetXYWH(HMILSKOLL handle, int x, int y, unsigned int w, unsigned int h) { + XMoveResizeWindow(handle->display, handle->window, x, y, w, h); +} + void MilskoLLFreeColor(HMILSKOCOLOR color) { free(color); }