aaaaaaaaaaa

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@13 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-28 08:45:58 +00:00
parent 8c107b989f
commit 398afe0c43
2 changed files with 5 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);
}