rnd-20100207-1-src
[rocksndiamonds.git] / src / tools.c
index 07c5a491bb7a37e9962cd540c5900830f01b9703..18c5ca28f8c439934f25542eabae836d2ae96b7b 100644 (file)
@@ -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)