Continue menu
This commit is contained in:
parent
a30be11bf9
commit
9e0cb3c944
3 changed files with 92 additions and 17 deletions
13
renderer.h
13
renderer.h
|
@ -1718,12 +1718,18 @@ void LCR_rendererDrawMenu(const char **items, unsigned char itemCount,
|
|||
++i;
|
||||
}
|
||||
|
||||
#if LCR_SETTING_POTATO_GRAPHICS
|
||||
while (i < stripHeight * LCR_EFFECTIVE_RESOLUTION_X)
|
||||
{
|
||||
LCR_drawPixel(i,0x73ae);
|
||||
++i;
|
||||
}
|
||||
#else
|
||||
for (int y = 0; y < stripHeight2; ++y) // strip with arrows
|
||||
{
|
||||
int limit = y > stripHeight2 / 2 ?
|
||||
(stripHeight2 / 2 - y) : (y - stripHeight2 / 2);
|
||||
|
||||
|
||||
for (int x = 0; x < LCR_EFFECTIVE_RESOLUTION_X; ++x)
|
||||
{
|
||||
LCR_drawPixel(i,(x > LCR_EFFECTIVE_RESOLUTION_X / 4 - limit &&
|
||||
|
@ -1732,6 +1738,7 @@ void LCR_rendererDrawMenu(const char **items, unsigned char itemCount,
|
|||
i++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
while (i < LCR_EFFECTIVE_RESOLUTION_Y * LCR_EFFECTIVE_RESOLUTION_X)
|
||||
{
|
||||
|
@ -1744,7 +1751,7 @@ void LCR_rendererDrawMenu(const char **items, unsigned char itemCount,
|
|||
|
||||
for (int j = 0; j < itemCount; ++j)
|
||||
{
|
||||
if (j == selectedItem)
|
||||
if (j == selectedItem + 1)
|
||||
for (int y = i - 10; y < i + LCR_rendererComputeTextHeight(4) + 10; ++y)
|
||||
for (int x = LCR_EFFECTIVE_RESOLUTION_X / 4;
|
||||
x < LCR_EFFECTIVE_RESOLUTION_X - LCR_EFFECTIVE_RESOLUTION_X / 4; ++x)
|
||||
|
@ -1759,9 +1766,11 @@ void LCR_rendererDrawMenu(const char **items, unsigned char itemCount,
|
|||
i += LCR_rendererComputeTextHeight(7);
|
||||
}
|
||||
|
||||
#if !LCR_SETTING_POTATO_GRAPHICS
|
||||
LCR_rendererBlitImage(21,(LCR_EFFECTIVE_RESOLUTION_X -
|
||||
LCR_IMAGE_SIZE * (stripHeight / LCR_IMAGE_SIZE)) / 2,0,
|
||||
stripHeight / LCR_IMAGE_SIZE,0xffff);
|
||||
#endif
|
||||
}
|
||||
|
||||
void LCR_rendererCameraReset(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue