Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ add_project_arguments('-I.', language: 'c')

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

configure_file(
output: 'config.h',
Expand Down
3 changes: 1 addition & 2 deletions src/tilecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,6 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,

graphene_rect_t bounds;

// +1 to hide tile boundaries
bounds.origin.x = tile->bounds0.left * scale - x + paint->origin.x;
bounds.origin.y = tile->bounds0.top * scale - y + paint->origin.y;
bounds.size.width = tile->bounds0.width * scale;
Expand All @@ -953,7 +952,7 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
*/
bounds.size.width += 1;
bounds.size.height += 1;
#endif /*HAVE_GTK_SNAPSHOT_SET_SNAP*/
#endif /*!HAVE_GTK_SNAPSHOT_SET_SNAP*/

gtk_snapshot_append_scaled_texture(snapshot,
tile_get_texture(tile), filter, &bounds);
Expand Down