summaryrefslogtreecommitdiffstats
path: root/src/menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.cpp')
-rw-r--r--src/menu.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/menu.cpp b/src/menu.cpp
index 0c022e4..af1d2b8 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -664,9 +664,24 @@ void draw_text_col(int x, int y, const char *text, int r, int g, int b) {
664// (see hkdDrawPrintText hook in hl2h.cpp): we wrap our draws in 664// (see hkdDrawPrintText hook in hl2h.cpp): we wrap our draws in
665// PushMakeCurrent/PopMakeCurrent so they are submitted with a clean clip. 665// PushMakeCurrent/PopMakeCurrent so they are submitted with a clean clip.
666void outer_draw() { 666void outer_draw() {
667 static bool outer_enter = false;
668 if (!outer_enter) {
669 outer_enter = true;
670 logf("outer_draw: enter");
671 }
667 poll_keyboard(); 672 poll_keyboard();
668 fullbright_update(); 673 fullbright_update();
674 static bool fb_done = false;
675 if (!fb_done) {
676 fb_done = true;
677 logf("outer_draw: after fullbright");
678 }
669 gui_handle_input(); 679 gui_handle_input();
680 static bool gui_done = false;
681 if (!gui_done) {
682 gui_done = true;
683 logf("outer_draw: after gui input");
684 }
670 // HL2H_DRAW_TEST=1 draws a probe rect without needing the GUI open 685 // HL2H_DRAW_TEST=1 draws a probe rect without needing the GUI open
671 static bool draw_test = getenv("HL2H_DRAW_TEST") != nullptr; 686 static bool draw_test = getenv("HL2H_DRAW_TEST") != nullptr;
672 bool esp_on = feature_active(FEAT_ESP); 687 bool esp_on = feature_active(FEAT_ESP);