summaryrefslogtreecommitdiff
path: root/include/JSystem
diff options
context:
space:
mode:
authorMax Roncace <me@caseif.net>2026-01-19 21:18:30 -0500
committerGitHub <noreply@github.com>2026-01-19 18:18:30 -0800
commit1fba6e13e56dd74ca73bcfabfe2756b520fd8d7b (patch)
treec8bcca0d8320b28abfd84e86a9c4a951e127823c /include/JSystem
parentd83996c711a7aadd4f468614a34f53572423c3f1 (diff)
Use default parameter values in JORMContext calls where appropriate (#3057)
Diffstat (limited to 'include/JSystem')
-rw-r--r--include/JSystem/JHostIO/JORMContext.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/JSystem/JHostIO/JORMContext.h b/include/JSystem/JHostIO/JORMContext.h
index 0db8cf22a6..ad4d19f9f1 100644
--- a/include/JSystem/JHostIO/JORMContext.h
+++ b/include/JSystem/JHostIO/JORMContext.h
@@ -29,6 +29,8 @@
#define JORM_DEFAULT_WIDTH 0x200
#define JORM_DEFAULT_HEIGHT 0x18
+#define JORM_DEFAULT_COMBOBOX_WIDTH 0x100
+#define JORM_DEFAULT_COMBOBOX_HEIGHT 0x1a
#define DEFINE_GEN_CHECKBOX(T, kind) \
void genCheckBox(const char* label, T* pSrc, T mask, u32 style = 0, \
@@ -65,7 +67,8 @@
#define DEFINE_START_COMBO_BOX(T, kind) \
void startComboBox(const char* label, T* pSrc, u32 style = 0, \
JOREventListener* pListener = NULL, u16 posX = -1, u16 posY = -1, \
- u16 width = JORM_DEFAULT_WIDTH, u16 height = JORM_DEFAULT_HEIGHT) { \
+ u16 width = JORM_DEFAULT_COMBOBOX_WIDTH, \
+ u16 height = JORM_DEFAULT_COMBOBOX_HEIGHT) { \
startSelectorSub('CMBX', kind, label, (uintptr_t)pSrc, style, *pSrc, pListener, posX, \
posY, width, height); \
}