Skip to content

Commit

Permalink
revert restart selection & some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Jul 22, 2023
1 parent 69cca27 commit 2488ee1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extras/menus/xMenu/src/submenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void SubMenu::getItems() {
memoryStickSpeedup << "Memory Stick Speedup: " << ((se_config->msspeed)? "Enabled" : "Disabled");

options[0] = memoryStickSpeedup.str();
options[1] = "Restart xMenu";
options[1] = "Restart";
options[2] = "Exit";
}

Expand Down Expand Up @@ -85,7 +85,6 @@ void SubMenu::updateScreen(){
static u32 delta = 5;
u32 color = RED_COLOR | (alpha<<24);

// fillScreenRect(Color color, int x0, int y0, int width, int height)
fillScreenRect(color, cur_x-4, cur_y+13, min((int)(options[i].size()*8)+4, w), 2); // bottom

fillScreenRect(color, cur_x-4, cur_y+3, 2, 10); // left side
Expand All @@ -95,10 +94,9 @@ void SubMenu::updateScreen(){
if(i==0)
fillScreenRect(color, (options[i].size()*12)+8, cur_y+1, 2, 14); // right side
else if (i==1)
fillScreenRect(color, w+32, cur_y+1, 2, 14); // right side
fillScreenRect(color, w+8, cur_y+1, 2, 14); // right side
else
fillScreenRect(color, w-4, cur_y+1, 2, 14); // right side
//fillScreenRect(color, min((int)(options[i].size()*8)+2, w), cur_y+3, 2, 10); // right side

if(alpha==0) delta = 5;
else if (alpha == 255) delta = -5;
Expand Down

0 comments on commit 2488ee1

Please sign in to comment.