author | KUDr |
Sun, 03 Dec 2006 13:40:16 +0000 | |
changeset 5214 | 62a0325b53c7 |
parent 5213 | f5234ffd2cc4 |
child 5215 | b8fb685df4c5 |
main_gui.c | file | annotate | diff | comparison | revisions |
--- a/main_gui.c Sun Dec 03 13:06:49 2006 +0000 +++ b/main_gui.c Sun Dec 03 13:40:16 2006 +0000 @@ -881,7 +881,10 @@ vp->virtual_height <<= 1; break; } - + if (vp != NULL) { // the vp can be null when how == ZOOM_NONE + vp->virtual_left = WP(w, vp_d).scrollpos_x; + vp->virtual_top = WP(w, vp_d).scrollpos_y; + } SetWindowDirty(w); /* Update the windows that have zoom-buttons to perhaps disable their buttons */ SendWindowMessageClass(w->window_class, how, w->window_number, 0);