Skip to content

Commit 452ac2c

Browse files
committed
fix infobar scaling
1 parent cec4853 commit 452ac2c

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

src/imageui.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ struct _Imageui {
116116

117117
/* Region manipulation.
118118
*/
119-
Regionview *grabbed; /* Currently grabbed */
120-
int window_left; /* Window position at start of scroll */
119+
Regionview *grabbed; /* Currently grabbed */
120+
int window_left; /* Window position at start of scroll */
121121
int window_top;
122-
int start_x; /* Mouse position at start of scroll */
122+
int start_x; /* Mouse position at start of scroll */
123123
int start_y;
124124

125125
/* We use a floating regionview (no symbol) during eg. region create.

src/infobar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* a status bar for the iamge display window
1+
/* a status bar for the image display window
22
*/
33

44
/*

src/tilesource.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,12 +2021,6 @@ tilesource_get_pixel(Tilesource *tilesource, int image_x, int image_y,
20212021
!tilesource->image)
20222022
return FALSE;
20232023

2024-
/* x and y are in base image coordinates, so we need to scale by the
2025-
* current z.
2026-
*/
2027-
image_x /= 1 << tilesource->current_z;
2028-
image_y /= 1 << tilesource->current_z;
2029-
20302024
/* Block outside the image.
20312025
*/
20322026
if (image_x < 0 ||

src/tilesource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ typedef enum _TilesourceType {
9898
*
9999
* PAGES_AS_BANDS
100100
*
101-
* Just like toilet roll, exccept that we chop the image into pages and
101+
* Just like toilet roll, except that we chop the image into pages and
102102
* bandjoin them all. Handy for OME-TIFF, which has a one-band image
103103
* in each page.
104104
*/

0 commit comments

Comments
 (0)