From 8d67b62445143c8f9fdde2cea730bfee49cc4271 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 3 Feb 2016 20:09:42 +0100 Subject: [PATCH] added raw x/y screen position values for global animations --- src/init.c | 2 ++ src/main.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/init.c b/src/init.c index f85660d1..e33a5adb 100644 --- a/src/init.c +++ b/src/init.c @@ -1346,6 +1346,8 @@ static void set_graphic_parameters_ext(int graphic, int *parameter, g->step_delay = parameter[GFX_ARG_STEP_DELAY]; g->direction = parameter[GFX_ARG_DIRECTION]; g->position = parameter[GFX_ARG_POSITION]; + g->x = parameter[GFX_ARG_X]; // (may be uninitialized, + g->y = parameter[GFX_ARG_Y]; // unlike src_x and src_y) /* this is only used for drawing font characters */ g->draw_xoffset = parameter[GFX_ARG_DRAW_XOFFSET]; diff --git a/src/main.h b/src/main.h index 3e58df38..092a47e7 100644 --- a/src/main.h +++ b/src/main.h @@ -2826,6 +2826,8 @@ struct GraphicInfo int step_delay; /* optional step delay of toon animations */ int direction; /* optional move direction of toon animations */ int position; /* optional draw position of toon animations */ + int x; /* optional draw position of toon animations */ + int y; /* optional draw position of toon animations */ int draw_xoffset; /* optional offset for drawing font chars */ int draw_yoffset; /* optional offset for drawing font chars */ -- 2.34.1