projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added drawing global animations below and above masked screen border
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index d1cb4d35d2ed875a29181b410d034b310fe81285..38ec0b5b2e5148a2dbf69dd2a8accc65b959b694 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-234,11
+234,16
@@
void InitGfxDrawBusyAnimFunction(void (*draw_busy_anim_function)(void))
gfx.draw_busy_anim_function = draw_busy_anim_function;
}
gfx.draw_busy_anim_function = draw_busy_anim_function;
}
-void InitGfxDrawGlobalAnimFunction(void (*draw_global_anim_function)(
void
))
+void InitGfxDrawGlobalAnimFunction(void (*draw_global_anim_function)(
int
))
{
gfx.draw_global_anim_function = draw_global_anim_function;
}
{
gfx.draw_global_anim_function = draw_global_anim_function;
}
+void InitGfxDrawGlobalBorderFunction(void (*draw_global_border_function)(int))
+{
+ gfx.draw_global_border_function = draw_global_border_function;
+}
+
void InitGfxCustomArtworkInfo()
{
gfx.override_level_graphics = FALSE;
void InitGfxCustomArtworkInfo()
{
gfx.override_level_graphics = FALSE;
@@
-407,7
+412,7
@@
void FreeBitmap(Bitmap *bitmap)
Bitmap *CreateBitmapStruct(void)
{
Bitmap *CreateBitmapStruct(void)
{
- return checked_calloc(sizeof(
struct SDLSurfaceInfo
));
+ return checked_calloc(sizeof(
Bitmap
));
}
Bitmap *CreateBitmap(int width, int height, int depth)
}
Bitmap *CreateBitmap(int width, int height, int depth)
@@
-1190,6
+1195,11
@@
void CreateBitmapTextures(Bitmap **bitmaps)
SDLCreateBitmapTextures(bitmaps[IMG_BITMAP_STANDARD]);
}
SDLCreateBitmapTextures(bitmaps[IMG_BITMAP_STANDARD]);
}
+void FreeBitmapTextures(Bitmap **bitmaps)
+{
+ SDLFreeBitmapTextures(bitmaps[IMG_BITMAP_STANDARD]);
+}
+
void ScaleBitmap(Bitmap **bitmaps, int zoom_factor)
{
CreateScaledBitmaps(bitmaps, zoom_factor, 0, FALSE);
void ScaleBitmap(Bitmap **bitmaps, int zoom_factor)
{
CreateScaledBitmaps(bitmaps, zoom_factor, 0, FALSE);