Skip to content

Commit d2cb6c1

Browse files
committed
Merge branch 'master' of github.com:jcupitt/vipsdisp
2 parents 8896b5b + 2e0d67b commit d2cb6c1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ add_project_arguments('-I.', language: 'c')
3636

3737
gtk_dep = dependency('gtk4', version: '>=4.14')
3838
# use this to fix tile alignment, not yet merged
39-
config_h.set('HAVE_GTK_SNAPSHOT_SET_SNAP', cc.has_header_symbol('gtk.h', 'gtk_snapshot_set_snap', dependencies: gtk_dep))
39+
config_h.set('HAVE_GTK_SNAPSHOT_SET_SNAP', cc.has_function('gtk_snapshot_set_snap', prefix: '#include <gtk/gtk.h>', dependencies: gtk_dep))
4040

4141
configure_file(
4242
output: 'config.h',

src/tilecache.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,6 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
941941

942942
graphene_rect_t bounds;
943943

944-
// +1 to hide tile boundaries
945944
bounds.origin.x = tile->bounds0.left * scale - x + paint->origin.x;
946945
bounds.origin.y = tile->bounds0.top * scale - y + paint->origin.y;
947946
bounds.size.width = tile->bounds0.width * scale;
@@ -953,7 +952,7 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
953952
*/
954953
bounds.size.width += 1;
955954
bounds.size.height += 1;
956-
#endif /*HAVE_GTK_SNAPSHOT_SET_SNAP*/
955+
#endif /*!HAVE_GTK_SNAPSHOT_SET_SNAP*/
957956

958957
gtk_snapshot_append_scaled_texture(snapshot,
959958
tile_get_texture(tile), filter, &bounds);

0 commit comments

Comments
 (0)