Continue menu
This commit is contained in:
parent
6bf3a950dc
commit
1efeee9c36
2 changed files with 68 additions and 57 deletions
|
@ -1010,6 +1010,7 @@ uint8_t LCR_rendererInit(void)
|
|||
|
||||
LCR_renderer.frame = 0;
|
||||
LCR_renderer.carModel = LCR_renderer.models + 8;
|
||||
|
||||
LCR_renderer.ghostModel = LCR_renderer.models + 9;
|
||||
|
||||
S3L_model3DInit(
|
||||
|
@ -1747,7 +1748,7 @@ void LCR_rendererDrawMenu(const char **items, unsigned char itemCount,
|
|||
}
|
||||
|
||||
i = stripHeight +
|
||||
(stripHeight2 - LCR_rendererComputeTextHeight(4)) / 2;
|
||||
(stripHeight2 - LCR_rendererComputeTextHeight(3)) / 2;
|
||||
|
||||
for (int j = 0; j < itemCount; ++j)
|
||||
{
|
||||
|
@ -1755,7 +1756,7 @@ void LCR_rendererDrawMenu(const char **items, unsigned char itemCount,
|
|||
for (int y = i - 10; y < i + LCR_rendererComputeTextHeight(3) + 10; ++y)
|
||||
for (int x = LCR_EFFECTIVE_RESOLUTION_X / 4;
|
||||
x < LCR_EFFECTIVE_RESOLUTION_X - LCR_EFFECTIVE_RESOLUTION_X / 4; ++x)
|
||||
LCR_drawPixelXYSafe(x,y,0x5c1b);
|
||||
LCR_drawPixelXYSafe(x,y,0x5c1b + 4 * ((x & 0x10) == (y & 0x10)));
|
||||
|
||||
LCR_rendererDrawText(items[j],(LCR_EFFECTIVE_RESOLUTION_X -
|
||||
LCR_rendererComputeTextWidth(items[j],3)) / 2,i,0xffff,3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue