From 3931d11ec2ad334a9212ab744ceca17aa3afafe9 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 18 Apr 2015 14:26:27 +0300 Subject: [PATCH] Graffiti/HAM-E display position fix. --- drawing.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drawing.cpp b/drawing.cpp index 50deb2d9..efa16872 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -3211,6 +3211,15 @@ static void setnativeposition(struct vidbuffer *vb) vb->outheight = gfxvidinfo.drawbuffer.outheight; } +static void setspecialmonitorpos(struct vidbuffer *vb) +{ + vb->extrawidth = gfxvidinfo.drawbuffer.extrawidth; + vb->xoffset = gfxvidinfo.drawbuffer.xoffset; + vb->yoffset = gfxvidinfo.drawbuffer.yoffset; + vb->inxoffset = gfxvidinfo.drawbuffer.inxoffset; + vb->inyoffset = gfxvidinfo.drawbuffer.inyoffset; +} + static void finish_drawing_frame (void) { int i; @@ -3259,6 +3268,7 @@ static void finish_drawing_frame (void) lightpen_update (vb); if (currprefs.monitoremu && gfxvidinfo.tempbuffer.bufmem_allocated) { + setspecialmonitorpos(&gfxvidinfo.tempbuffer); if (emulate_specialmonitors (vb, &gfxvidinfo.tempbuffer)) { vb = gfxvidinfo.outbuffer = &gfxvidinfo.tempbuffer; if (vb->nativepositioning) -- 2.47.3