From a2113d414292d9526f78301dc94edfe0c39c9826 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 5 Jul 2022 14:00:51 +0200 Subject: [PATCH] darken the menu side of the screen --- dialogs.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dialogs.cpp b/dialogs.cpp index b1d0edf9..66c669ad 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -503,7 +503,8 @@ EX namespace dialog { tothei = (vid.yres - tothei) / 2; if(current_display->sidescreen && darken < menu_darkening) { - color_t col = (backcolor << 8) | (255 - (255 >> (menu_darkening - darken))); + int steps = menu_darkening - darken; + color_t col = (backcolor << 8) | (255 - (255 >> steps)); if(svg::in || !(auraNOGL || vid.usingGL)) { flat_model_enabler fme; @@ -524,12 +525,14 @@ EX namespace dialog { auto full = part(col, 0); static vector auravertices; auravertices.clear(); + ld width = vid.xres / 100; + for(int i=4; i cx = ", cx, " darken = ", part(col, 0)); auravertices.emplace_back(hyperpoint(cx - current_display->xcenter, by - current_display->ycenter, 0, 1), col);