diff options
Diffstat (limited to 'src/ui/visbuf.c')
-rw-r--r-- | src/ui/visbuf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/visbuf.c b/src/ui/visbuf.c index 8f7a4c46..0097b12a 100644 --- a/src/ui/visbuf.c +++ b/src/ui/visbuf.c | |||
@@ -21,6 +21,7 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||
21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | 21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ |
22 | 22 | ||
23 | #include "visbuf.h" | 23 | #include "visbuf.h" |
24 | #include "paint.h" | ||
24 | #include "window.h" | 25 | #include "window.h" |
25 | #include "util.h" | 26 | #include "util.h" |
26 | 27 | ||
@@ -224,6 +225,8 @@ void draw_VisBuf(const iVisBuf *d, const iInt2 topLeft, const iRangei yClipBound | |||
224 | continue; /* Outside the clipping area. */ | 225 | continue; /* Outside the clipping area. */ |
225 | #endif | 226 | #endif |
226 | } | 227 | } |
228 | dst.x += origin_Paint.x; | ||
229 | dst.y += origin_Paint.y; | ||
227 | #if defined (DEBUG_SCALE) | 230 | #if defined (DEBUG_SCALE) |
228 | dst.w *= DEBUG_SCALE; | 231 | dst.w *= DEBUG_SCALE; |
229 | dst.h *= DEBUG_SCALE; | 232 | dst.h *= DEBUG_SCALE; |