diff --git a/includes/defines.h b/includes/defines.h index 0f016f912..9dc6db15f 100644 --- a/includes/defines.h +++ b/includes/defines.h @@ -166,6 +166,7 @@ extern int pretty_powder; extern int drawgrav_enable; int limitFPS; int water_equal_test; +extern int quickoptions_tooltip_fade; extern int debug_flags; #define DEBUG_PERF_FRAMECOUNT 256 diff --git a/src/interface.c b/src/interface.c index 75e22ec72..a41f2c223 100644 --- a/src/interface.c +++ b/src/interface.c @@ -2422,6 +2422,8 @@ int quickoptions_tooltip_y = 0; void quickoptions_menu(pixel *vid_buf, int b, int bq, int x, int y) { int i = 0; + x /= sdl_scale; + y /= sdl_scale; if(quickoptions_tooltip_fade && quickoptions_tooltip) { drawtext_outline(vid_buf, (XRES - 5) - textwidth(quickoptions_tooltip), quickoptions_tooltip_y, quickoptions_tooltip, 255, 255, 255, quickoptions_tooltip_fade*20, 0, 0, 0, quickoptions_tooltip_fade*15); diff --git a/src/main.c b/src/main.c index 905273067..e77e3104d 100644 --- a/src/main.c +++ b/src/main.c @@ -1585,7 +1585,7 @@ int main(int argc, char *argv[]) #endif int wavelength_gfx = 0; int x, y, line_x, line_y, b = 0, sl=1, sr=0, su=0, c, lb = 0, lx = 0, ly = 0, lm = 0;//, tx, ty; - int da = 0, dae = 0, db = 0, it = 2047, mx, my, bsx = 2, bsy = 2; + int da = 0, dae = 0, db = 0, it = 2047, mx, my, bsx = 2, bsy = 2, quickoptions_tooltip_fade_invert; float nfvx, nfvy; int load_mode=0, load_w=0, load_h=0, load_x=0, load_y=0, load_size=0; void *load_data=NULL; @@ -3479,29 +3479,29 @@ int main(int argc, char *argv[]) if (vs) strappend(uitext, " [FRAME CAPTURE]"); #endif - + quickoptions_tooltip_fade_invert = 255 - (quickoptions_tooltip_fade*20); if (sdl_zoom_trig||zoom_en) { if (zoom_x