Skip to content

Commit bb1f58d

Browse files
committed
Fix UI hitboxes for CHANGE PLATE and centered Downloads tabs
Add explicit bounds for the CHANGE PLATE control and disable default init (QMF_NODEFAULTINIT) so mouse hit testing matches the rendered label more reliably. Fine-tune plate button bounds (left/top/right/bottom) to fix vertical and horizontal click-offset issues. Add QMF_CENTER_JUSTIFY to Downloads tab MTYPE_PTEXT buttons so clickable bounds align with centered tab labels.
1 parent e587022 commit bb1f58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/code/q3_ui/ui_rally_downloads.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ static sfxHandle_t DownloadsMenu_Key( int key ) {
888888

889889
static void InitDLTabButton( menutext_s *item, int id, char *label, int x, int y ) {
890890
item->generic.type = MTYPE_PTEXT;
891-
item->generic.flags = QMF_PULSEIFFOCUS;
891+
item->generic.flags = QMF_PULSEIFFOCUS | QMF_CENTER_JUSTIFY;
892892
item->generic.id = id;
893893
item->generic.callback = DownloadsMenu_Event;
894894
item->generic.x = x;

0 commit comments

Comments
 (0)