From: Holger Schemel Date: Thu, 25 Apr 2019 16:51:31 +0000 (+0200) Subject: fixed (reversed) setting hot spot for pointer-style global animations X-Git-Tag: 4.1.3.0~6 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d2fe72fafa7704884ffbfcb8fa5ee7b9effe32db;p=rocksndiamonds.git fixed (reversed) setting hot spot for pointer-style global animations --- diff --git a/src/anim.c b/src/anim.c index 132ba13b..3b96adfa 100644 --- a/src/anim.c +++ b/src/anim.c @@ -880,8 +880,8 @@ static boolean SetGlobalAnimPart_Viewport(struct GlobalAnimPartControlInfo *part int mx = MIN(MAX(0, gfx.mouse_x), WIN_XSIZE - 1); int my = MIN(MAX(0, gfx.mouse_y), WIN_YSIZE - 1); - viewport_x = mx + part->control_info.x; - viewport_y = my + part->control_info.y; + viewport_x = mx - part->control_info.x; + viewport_y = my - part->control_info.y; viewport_width = part->graphic_info.width; viewport_height = part->graphic_info.height;