From 9abe4165d1aebb9666cad77fe688f47403afb349 Mon Sep 17 00:00:00 2001 From: Xander Date: Tue, 4 May 2021 14:24:23 +0300 Subject: [PATCH] Add icon sizes The classic WindowMaker allows tile icon size up to 96x96 px. This patch rises this value to 256x256 px. It also sets the max number of visible items in the corresponding pref list to 29 (instead of 9), so the new values show up in the list. This patch makes it possible to use dockapps that allow changing their size to bigger than 64x64 px, see https://gitlab.com/xander1988/dockapps for more info. --- WPrefs.app/Icons.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WPrefs.app/Icons.c b/WPrefs.app/Icons.c index 0f067aaa..510a437f 100644 --- a/WPrefs.app/Icons.c +++ b/WPrefs.app/Icons.c @@ -195,8 +195,8 @@ static void showData(_Panel * panel) if (i < 0) i = 0; - else if (i > 9) - i = 9; + else if (i > 29) + i = 29; WMSetPopUpButtonSelectedItem(panel->sizeP, i); /* Mini-Previews for Icons */ @@ -339,7 +339,7 @@ static void createPanel(Panel * p) panel->sizeP = WMCreatePopUpButton(panel->sizeF); WMResizeWidget(panel->sizeP, 80, 20); WMMoveWidget(panel->sizeP, 10, 19); - for (i = 24; i <= 96; i += 8) { + for (i = 24; i <= 256; i += 8) { sprintf(buf, "%ix%i", i, i); WMAddPopUpButtonItem(panel->sizeP, buf); }