summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-05 10:12:55 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-05 10:12:55 -0500
commitdd3887ec47137b6bf993674356a73b3266bb8a51 (patch)
treec9981783a6574b58dd9f503384b2fe651495b224 /menu.c
parent1e7e392b9d5e593aeb9680d82b76afddad8ce2e6 (diff)
got text working with modern OpenGL
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index f979b72..70aaf9d 100644
--- a/menu.c
+++ b/menu.c
@@ -209,11 +209,10 @@ static void menu_render(Ted *ted, Menu menu) {
menu_y2 -= padding;
- gl_color_rgba(colors[COLOR_TEXT]);
if (menu == MENU_OPEN) {
- text_render(font_bold, "Open...", menu_x1, menu_y1);
+ text_render(font_bold, "Open...", menu_x1, menu_y1, colors[COLOR_TEXT]);
} else if (menu == MENU_SAVE_AS) {
- text_render(font_bold, "Save as...", menu_x1, menu_y1);
+ text_render(font_bold, "Save as...", menu_x1, menu_y1, colors[COLOR_TEXT]);
}
menu_y1 += char_height_bold * 0.75f + padding;