From 1fba6e13e56dd74ca73bcfabfe2756b520fd8d7b Mon Sep 17 00:00:00 2001 From: Max Roncace Date: Mon, 19 Jan 2026 21:18:30 -0500 Subject: Use default parameter values in JORMContext calls where appropriate (#3057) --- include/JSystem/JHostIO/JORMContext.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/JSystem') 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); \ } -- cgit v1.2.3