X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=18c5ca28f8c439934f25542eabae836d2ae96b7b;hp=07c5a491bb7a37e9962cd540c5900830f01b9703;hb=e742774a369161df5592ec2d7c553ea6d1143de3;hpb=b6191e2bcd1c798efe34d42284ae4ba0b17d6836 diff --git a/src/tools.c b/src/tools.c index 07c5a491..18c5ca28 100644 --- a/src/tools.c +++ b/src/tools.c @@ -7735,6 +7735,20 @@ void InitGraphicInfo_EM(void) #endif } +void getGraphicSource_SP(struct GraphicInfo_SP *g_sp, + int graphic, int sync_frame, int x, int y) +{ +#if 0 + /* currently we get the actual graphic animation frame */ + int frame = sync_frame; +#else + /* (future implementations may provide a synchronization frame instead) */ + int frame = getGraphicAnimationFrame(graphic, sync_frame); +#endif + + getGraphicSource(graphic, frame, &g_sp->bitmap, &g_sp->src_x, &g_sp->src_y); +} + void PlayMenuSoundExt(int sound) { if (sound == SND_UNDEFINED)