Skip to content

Commit

Permalink
Improved menu cursor's look drawn by OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
j0zzz committed Dec 5, 2021
1 parent a4a4132 commit 932c0a2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions trunk/gl_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,11 +974,12 @@ static void SCR_DrawCursor(void)
}
else
{
color_t c = RGBA_TO_COLOR(0, 255, 0, 255);
Draw_AlphaLineRGB(cursor_x + (10 * scale), cursor_y + (10 * scale), cursor_x + (40 * scale), cursor_y + (40 * scale), 10 * scale, c);
Draw_AlphaLineRGB(cursor_x, cursor_y, cursor_x + (20 * scale), cursor_y, 10 * scale, c);
Draw_AlphaLineRGB(cursor_x, cursor_y, cursor_x, cursor_y + 20 * scale, 10 * scale, c);
Draw_AlphaLineRGB(cursor_x + (20 * scale), cursor_y, cursor_x, cursor_y + (20 * scale), 10 * scale, c);
color_t c = RGBA_TO_COLOR(255, 255, 255, 255);
scale *= 3;
Draw_AlphaLineRGB(cursor_x, cursor_y, cursor_x + (50 * scale), cursor_y + (20 * scale), 2, c);
Draw_AlphaLineRGB(cursor_x, cursor_y, cursor_x + (20 * scale), cursor_y + (50 * scale), 2, c);
Draw_AlphaLineRGB(cursor_x + (50 * scale), cursor_y + (20 * scale), cursor_x + (25 * scale), cursor_y + (25 * scale), 2, c);
Draw_AlphaLineRGB(cursor_x + (20 * scale), cursor_y + (50 * scale), cursor_x + (25 * scale), cursor_y + (25 * scale), 2, c);
}
#else // GLQUAKE
/*
Expand Down

0 comments on commit 932c0a2

Please sign in to comment.