aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/window_text_buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/window_text_buffer.cpp')
-rw-r--r--engines/glk/window_text_buffer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/glk/window_text_buffer.cpp b/engines/glk/window_text_buffer.cpp
index 4c55066603..35f5af9c6f 100644
--- a/engines/glk/window_text_buffer.cpp
+++ b/engines/glk/window_text_buffer.cpp
@@ -1070,7 +1070,8 @@ void TextBufferWindow::redraw() {
if (ln->_lPic) {
if (y < y1 && y + ln->_lPic->h > y0) {
- ln->_lPic->drawPicture(x0 / GLI_SUBPIX, y, x0 / GLI_SUBPIX, y0, x1 / GLI_SUBPIX, y1);
+ ln->_lPic->drawPicture(Point(x0 / GLI_SUBPIX, y),
+ Rect(x0 / GLI_SUBPIX, y0, x1 / GLI_SUBPIX, y1));
link = ln->_lHyper;
hy0 = y > y0 ? y : y0;
hy1 = y + ln->_lPic->h < y1 ? y + ln->_lPic->h : y1;
@@ -1084,8 +1085,8 @@ void TextBufferWindow::redraw() {
if (ln->_rPic) {
if (y < y1 && y + ln->_rPic->h > y0) {
- ln->_rPic->drawPicture(x1 / GLI_SUBPIX - ln->_rPic->w, y,
- x0 / GLI_SUBPIX, y0, x1 / GLI_SUBPIX, y1);
+ ln->_rPic->drawPicture(Point(x1 / GLI_SUBPIX - ln->_rPic->w, y),
+ Rect(x0 / GLI_SUBPIX, y0, x1 / GLI_SUBPIX, y1));
link = ln->_rHyper;
hy0 = y > y0 ? y : y0;
hy1 = y + ln->_rPic->h < y1 ? y + ln->_rPic->h : y1;