From e367497f7e13104f28ab6807e0fafc1e294efb2b Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Thu, 30 Aug 2012 18:02:57 +0000 Subject: [PATCH] picture.datatype: gi_RastPort should not be directly accessed Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@45697 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/classes/datatypes/picture/pictureclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workbench/classes/datatypes/picture/pictureclass.c b/workbench/classes/datatypes/picture/pictureclass.c index 10174574fb..aeb122de44 100644 --- a/workbench/classes/datatypes/picture/pictureclass.c +++ b/workbench/classes/datatypes/picture/pictureclass.c @@ -1529,8 +1529,9 @@ STATIC IPTR DT_Print(struct IClass *cl, Object *o, struct dtPrint *msg) if ((s = gi->gi_Screen)) { if ((pio->io_Modes = GetVPModeID(&s->ViewPort)) != INVALID_ID) { pio->io_ColorMap = s->ViewPort.ColorMap; - if ((pio->io_RastPort = gi->gi_RastPort)) { + if ((pio->io_RastPort = ObtainGIRPort(gi))) { RetVal = DoIO((struct IORequest *)pio); + ReleaseGIRPort(pio->io_RastPort); } } } -- 2.11.4.GIT