comparison src/layout_image.c @ 836:1af95bada7e7

preserve image center on refresh
author nadvornik
date Sat, 14 Jun 2008 18:41:30 +0000
parents 764fd82dd099
children f8c22438376c
comparison
equal deleted inserted replaced
835:1014e8f72f94 836:1af95bada7e7
1292 layout_list_sync_fd(lw, layout_image_get_fd(lw)); 1292 layout_list_sync_fd(lw, layout_image_get_fd(lw));
1293 } 1293 }
1294 1294
1295 void layout_image_refresh(LayoutWindow *lw) 1295 void layout_image_refresh(LayoutWindow *lw)
1296 { 1296 {
1297 if (!layout_valid(&lw)) return; 1297 gdouble sx, sy;
1298 1298 if (!layout_valid(&lw)) return;
1299
1300 image_get_scroll_center(lw->image, &sx, &sy);
1299 image_reload(lw->image); 1301 image_reload(lw->image);
1302 image_set_scroll_center(lw->image, sx, sy);
1300 } 1303 }
1301 1304
1302 void layout_image_color_profile_set(LayoutWindow *lw, 1305 void layout_image_color_profile_set(LayoutWindow *lw,
1303 gint input_type, gint screen_type, 1306 gint input_type, gint screen_type,
1304 gint use_image) 1307 gint use_image)