restore support for non-square XPM-based tiles (X11 & Gnome)
- change the way the tile sizes are calculated, based on the image size, so non-square tiles can once again be supported. - fix Gnome port so it can actually display non-square tiles, several height/width uses were backwards - update Install.X11 to note the number of tiles per row in the XPM image
This commit is contained in:
+5
-6
@@ -221,8 +221,8 @@ ghack_init_map_window ( )
|
||||
gnome_canvas_image_get_type (),
|
||||
"x", (double) x,
|
||||
"y", (double) y,
|
||||
"width", (double) ghack_glyph_height(),
|
||||
"height", (double) ghack_glyph_width(),
|
||||
"width", (double) ghack_glyph_width(),
|
||||
"height", (double) ghack_glyph_height(),
|
||||
"anchor", GTK_ANCHOR_NORTH_WEST,
|
||||
NULL) );
|
||||
}
|
||||
@@ -234,8 +234,7 @@ ghack_init_map_window ( )
|
||||
g_warning("Bummer! Failed to load the pet_mark image!");
|
||||
}
|
||||
else {
|
||||
gdk_imlib_render(petmark, petmark->rgb_width,
|
||||
petmark->rgb_height);
|
||||
gdk_imlib_render(petmark, petmark->rgb_width, petmark->rgb_height);
|
||||
|
||||
/* ghack_map.overlay is an array of canvas images used to
|
||||
* overlay tile images...
|
||||
@@ -573,8 +572,8 @@ ghack_reinit_map_window ( )
|
||||
gnome_canvas_image_get_type (),
|
||||
"x", (double) x,
|
||||
"y", (double) y,
|
||||
"width", (double) ghack_glyph_height(),
|
||||
"height", (double) ghack_glyph_width(),
|
||||
"width", (double) ghack_glyph_width(),
|
||||
"height", (double) ghack_glyph_height(),
|
||||
"anchor", GTK_ANCHOR_NORTH_WEST,
|
||||
NULL) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user