OSDN Git Service
(root)
/
jnethack
/
source.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3186dea
)
add missing "#ifdef X11LARGETILE"
author
SHIRAKATA Kentaro
<argrath@ub32.org>
Sat, 29 Aug 2020 15:20:42 +0000
(
00:20
+0900)
committer
SHIRAKATA Kentaro
<argrath@ub32.org>
Tue, 22 Sep 2020 15:33:51 +0000
(
00:33
+0900)
win/X11/winmap.c
patch
|
blob
|
history
diff --git
a/win/X11/winmap.c
b/win/X11/winmap.c
index
63daa1c
..
d732027
100644
(file)
--- a/
win/X11/winmap.c
+++ b/
win/X11/winmap.c
@@
-247,7
+247,7
@@
void
post_process_tiles()
{
Display *dpy = XtDisplay(toplevel);
post_process_tiles()
{
Display *dpy = XtDisplay(toplevel);
-#if
0 /*JP*/
+#if
ndef X11LARGETILE
unsigned int width, height;
if (tile_image == 0)
unsigned int width, height;
if (tile_image == 0)
@@
-309,7
+309,7
@@
post_process_tiles()
XpmFreeXpmImage(&tile_image);
}
# endif
XpmFreeXpmImage(&tile_image);
}
# endif
-#endif
/*JP*/
+#endif
init_annotation(&pet_annotation, appResources.pet_mark_bitmap,
appResources.pet_mark_color);
init_annotation(&pet_annotation, appResources.pet_mark_bitmap,
appResources.pet_mark_color);
@@
-369,7
+369,7
@@
struct xwindow *wp;
attributes.valuemask = XpmCloseness;
attributes.closeness = 25000;
attributes.valuemask = XpmCloseness;
attributes.closeness = 25000;
-# if
0 /*JP*/
+# if
ndef X11LARGETILE
errorcode = XpmReadFileToImage(dpy, appResources.tile_file, &tile_image,
0, &attributes);
# else
errorcode = XpmReadFileToImage(dpy, appResources.tile_file, &tile_image,
0, &attributes);
# else
@@
-377,7
+377,7
@@
struct xwindow *wp;
NULL);
# endif
NULL);
# endif
-# if
0 /*JP*/
+# if
ndef X11LARGETILE
if (errorcode == XpmColorFailed) {
Sprintf(buf, "Insufficient colors available to load %s.",
appResources.tile_file);
if (errorcode == XpmColorFailed) {
Sprintf(buf, "Insufficient colors available to load %s.",
appResources.tile_file);