X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=526154eac4c7f1e009c61a8f9e975e01add27b2b;hb=7d07216e7f18ff03a650f53e0bfb372b07782ca2;hp=5e5301c728941fee464336c504e25ce77a8b0ec6;hpb=24090f8655f9fbf138c1f9105427728f5c21b0b9;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 5e5301c7..526154ea 100644 --- a/src/init.c +++ b/src/init.c @@ -1501,6 +1501,12 @@ static void set_graphic_parameters_ext(int graphic, int *parameter, g->class = parameter[GFX_ARG_CLASS]; if (parameter[GFX_ARG_STYLE] != ARG_UNDEFINED_VALUE) g->style = parameter[GFX_ARG_STYLE]; + + /* this is only used for drawing menu buttons and text */ + g->active_xoffset = parameter[GFX_ARG_ACTIVE_XOFFSET]; + g->active_yoffset = parameter[GFX_ARG_ACTIVE_YOFFSET]; + g->pressed_xoffset = parameter[GFX_ARG_PRESSED_XOFFSET]; + g->pressed_yoffset = parameter[GFX_ARG_PRESSED_YOFFSET]; } static void set_graphic_parameters(int graphic)