gdi backend has bugs

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@351 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-16 07:38:43 +00:00
parent 6e4f7ff6ef
commit 9b17545880
3 changed files with 19 additions and 7 deletions

View File

@@ -9,15 +9,19 @@ static int create(MwWidget handle) {
static void draw(MwWidget handle) {
MwRect r;
MwLLPixmap px = MwGetVoid(handle, MwNpixmap);
MwLLPixmap px = MwGetVoid(handle, MwNpixmap);
MwLLColor base = MwParseColor(handle, MwGetText(handle, MwNbackground));
r.x = 0;
r.y = 0;
r.width = MwGetInteger(handle, MwNwidth);
r.height = MwGetInteger(handle, MwNheight);
MwDrawRect(handle, &r, base);
if(px != NULL) {
MwLLDrawPixmap(handle->lowlevel, &r, px);
}
MwLLFreeColor(base);
}
static void prop_change(MwWidget handle, const char* key) {