mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 19:38:06 -04:00
fix drawing UL thermo values
This commit is contained in:
parent
5fbdf0264b
commit
928311a574
@ -2393,7 +2393,7 @@ static void M_DrawSetting(setup_menu_t *s, int accum_y)
|
|||||||
max = M_THRM_UL_VAL;
|
max = M_THRM_UL_VAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
value = BETWEEN(min, max, value);
|
int thrm_val = BETWEEN(min, max, value);
|
||||||
|
|
||||||
byte *cr;
|
byte *cr;
|
||||||
if (ItemDisabled(flags))
|
if (ItemDisabled(flags))
|
||||||
@ -2408,7 +2408,7 @@ static void M_DrawSetting(setup_menu_t *s, int accum_y)
|
|||||||
rect->y = y;
|
rect->y = y;
|
||||||
rect->w = (width + 2) * M_THRM_STEP;
|
rect->w = (width + 2) * M_THRM_STEP;
|
||||||
rect->h = M_THRM_HEIGHT;
|
rect->h = M_THRM_HEIGHT;
|
||||||
M_DrawSetupThermo(x, y, width, max - min, value - min, cr);
|
M_DrawSetupThermo(x, y, width, max - min, thrm_val - min, cr);
|
||||||
|
|
||||||
if (strings)
|
if (strings)
|
||||||
strcpy(menu_buffer, strings[value]);
|
strcpy(menu_buffer, strings[value]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user