aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-10-30 20:45:08 -0700
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit7c7178c4191b734805cca49e375beafdc8fc4315 (patch)
treefafa258d65d8b96185d2ad8f362eece9ac58fd23
parent7ebbcc87dc5f53a66092b34975f16e4c0629590b (diff)
downloadscummvm-rg350-7c7178c4191b734805cca49e375beafdc8fc4315.tar.gz
scummvm-rg350-7c7178c4191b734805cca49e375beafdc8fc4315.tar.bz2
scummvm-rg350-7c7178c4191b734805cca49e375beafdc8fc4315.zip
GLK: Text is partially displaying in the buffer window
-rw-r--r--engines/gargoyle/window_text_buffer.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/gargoyle/window_text_buffer.cpp b/engines/gargoyle/window_text_buffer.cpp
index 4db0bf9c86..ff60345051 100644
--- a/engines/gargoyle/window_text_buffer.cpp
+++ b/engines/gargoyle/window_text_buffer.cpp
@@ -1012,13 +1012,12 @@ void TextBufferWindow::redraw() {
x = x0 + SLOP + ln->_lm;
a = 0;
- for (b = 0; b < linelen; b++)
- {
+ for (b = 0; b < linelen; b++) {
if (ln->_attrs[a] != ln->_attrs[b]) {
link = ln->_attrs[a].hyper;
font = ln->_attrs[a].attrFont(_styles);
color = link ? g_conf->_linkColor : ln->_attrs[a].attrFg(_styles);
- x = screen.drawStringUni(Point(x, y + g_conf->_baseLine),
+ x = screen.drawStringUni(Point(x / GLI_SUBPIX, y),
font, color, Common::U32String(ln->_chars + a, b - a), spw);
a = b;
}
@@ -1026,8 +1025,7 @@ void TextBufferWindow::redraw() {
link = ln->_attrs[a].hyper;
font = ln->_attrs[a].attrFont(_styles);
color = link ? g_conf->_linkColor : ln->_attrs[a].attrFg(_styles);
- screen.drawStringUni(Point(x, y + g_conf->_baseLine),
- font, color, Common::U32String(ln->_chars + a, linelen - a), spw);
+ screen.drawStringUni(Point(x / GLI_SUBPIX, y), font, color, Common::U32String(ln->_chars + a, linelen - a), spw);
}
/*