Handle different resolutions
This commit is contained in:
parent
70d5e11719
commit
7d5aa32c79
4 changed files with 14 additions and 14 deletions
14
renderer.h
14
renderer.h
|
@ -1759,8 +1759,7 @@ void LCR_rendererDrawLOD(void)
|
|||
{
|
||||
variability = variability < 14 ? variability + 1 : 0;
|
||||
bx = j * 8 + 4;
|
||||
|
||||
_LCR_rendererDrawLODBlock(bx,by,bz,2 * LCR_EFFECTIVE_RESOLUTION_Y,
|
||||
_LCR_rendererDrawLODBlock(bx,by,bz,2000,
|
||||
LCR_SETTING_LOD_COLOR,variability);
|
||||
}
|
||||
|
||||
|
@ -2027,11 +2026,12 @@ void LCR_rendererDrawMenu(const char *tabName,const char **items,
|
|||
s2++;
|
||||
}
|
||||
|
||||
#define _MENU_ITEM_HEIGHT (LCR_EFFECTIVE_RESOLUTION_Y / 20)
|
||||
#define _FONT_SIZE (2 + LCR_EFFECTIVE_RESOLUTION_Y / 512)
|
||||
#define _FONT_SIZE (2 + LCR_EFFECTIVE_RESOLUTION_Y / 512 \
|
||||
- (LCR_EFFECTIVE_RESOLUTION_Y < 220))
|
||||
|
||||
if (j == selectedItem + 1)
|
||||
for (int y = i - 7; y < i + LCR_rendererComputeTextHeight(_FONT_SIZE) + 7;
|
||||
for (int y = i - 3 * LCR_FONT_PIXEL_SIZE; y < i +
|
||||
LCR_rendererComputeTextHeight(_FONT_SIZE) + 3 * LCR_FONT_PIXEL_SIZE;
|
||||
++y)
|
||||
for (int x = LCR_EFFECTIVE_RESOLUTION_X / 4;
|
||||
x < LCR_EFFECTIVE_RESOLUTION_X - LCR_EFFECTIVE_RESOLUTION_X / 4; ++x)
|
||||
|
@ -2045,10 +2045,8 @@ void LCR_rendererDrawMenu(const char *tabName,const char **items,
|
|||
if (j == 0)
|
||||
i = stripHeight + stripHeight2;
|
||||
|
||||
i += _MENU_ITEM_HEIGHT;
|
||||
|
||||
i += LCR_rendererComputeTextHeight(_FONT_SIZE) + 6 * LCR_FONT_PIXEL_SIZE;
|
||||
#undef _FONT_SIZE
|
||||
#undef _MENU_ITEM_HEIGHT
|
||||
}
|
||||
|
||||
#if !LCR_SETTING_POTATO_GRAPHICS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue