From: Toni Wilen Date: Sat, 18 Apr 2015 11:26:27 +0000 (+0300) Subject: Graffiti/HAM-E display position fix. X-Git-Tag: 3100~48 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3931d11ec2ad334a9212ab744ceca17aa3afafe9;p=francis%2Fwinuae.git Graffiti/HAM-E display position fix. --- 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)