improvement

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@771 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-21 19:43:32 +00:00
parent 2d5e2ae376
commit 68322187ff
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ int main() {
px = MwLoadIcon(lb, MwIconInfo);
MwSetInteger(lb, MwNleftPadding, 16);
MwSetInteger(lb, MwNleftPadding, 20);
packet = MwListBoxCreatePacket();
index = MwListBoxPacketInsert(packet, -1);

View File

@@ -222,9 +222,9 @@ static void frame_draw(MwWidget handle) {
if(selected) {
MwRect r2;
r2.x = 0;
r2.x = MwGetInteger(handle->parent, MwNleftPadding);
r2.y = p.y;
r2.width = r.width;
r2.width = r.width - r2.x;
r2.height = MwTextHeight(handle, "M");
MwDrawRect(handle, &r2, text2);
handle->bgcolor = text2;
@@ -239,7 +239,7 @@ static void frame_draw(MwWidget handle) {
MwLLDrawPixmap(handle->lowlevel, &r2, lb->list[i].pixmap);
}
p.y += MwTextHeight(handle, "M") / 2;
p.x = MwGetInteger(handle->parent, MwNleftPadding) - MwDefaultBorderWidth(handle);
p.x = MwGetInteger(handle->parent, MwNleftPadding);
for(j = 0; j < arrlen(lb->list[i].name); j++) {
char* t = lb->list[i].name[j];