projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed graphical bugs when using background graphics on menu screens
[rocksndiamonds.git]
/
src
/
libgame
/
image.c
diff --git
a/src/libgame/image.c
b/src/libgame/image.c
index 1a61ff922ed15ce71d9b734f95e7f7ab80c184ea..4cc613e70062f8031c7703b7fbde5218b664f3dd 100644
(file)
--- a/
src/libgame/image.c
+++ b/
src/libgame/image.c
@@
-139,13
+139,6
@@
char *getTokenFromImageID(int graphic)
return (file_list != NULL ? file_list->token : NULL);
}
return (file_list != NULL ? file_list->token : NULL);
}
-char *getFilenameFromImageID(int graphic)
-{
- struct FileInfo *file_list = getImageListEntryFromImageID(graphic);
-
- return (file_list != NULL ? file_list->filename : NULL);
-}
-
int getImageIDFromToken(char *token)
{
struct FileInfo *file_list = image_info->file_list;
int getImageIDFromToken(char *token)
{
struct FileInfo *file_list = image_info->file_list;
@@
-398,9
+391,11
@@
void ScaleImage(int pos, int zoom_factor)
return;
if (zoom_factor != 1)
return;
if (zoom_factor != 1)
+ {
ScaleBitmap(img_info->bitmaps, zoom_factor);
ScaleBitmap(img_info->bitmaps, zoom_factor);
- img_info->scaled_up = TRUE;
+ img_info->scaled_up = TRUE;
+ }
}
void FreeAllImages(void)
}
void FreeAllImages(void)