]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
RTG palette update was not locked, multithread mode screen updates were unreliable...
authorToni Wilen <twilen@winuae.net>
Sat, 30 Jun 2018 15:57:07 +0000 (18:57 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 30 Jun 2018 15:57:07 +0000 (18:57 +0300)
od-win32/picasso96_win.cpp

index 53d08ee42568e399f8af257179435563d4281f0f..d0b1c97e6e37b5281f57961a7e4ce46c770400a1 100644 (file)
@@ -2784,8 +2784,10 @@ static uae_u32 REGPARAM2 picasso_SetColorArray (TrapContext *ctx)
        uaecptr clut = boardinfo + PSSO_BoardInfo_CLUT;
        if (start > 256 || count > 256 || start + count > 256)
                return 0;
+       lockrtg();
        if (updateclut(ctx, clut, start, count))
                vidinfo->full_refresh = 1;
+       unlockrtg();
        P96TRACE_SETUP((_T("SetColorArray(%d,%d)\n"), start, count));
        return 1;
 }