From: Toni Wilen Date: Sat, 30 Jun 2018 15:57:07 +0000 (+0300) Subject: RTG palette update was not locked, multithread mode screen updates were unreliable... X-Git-Tag: 4010~38 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=079b53c455599bb039154ac1f85e7b167ac68a3d;p=francis%2Fwinuae.git RTG palette update was not locked, multithread mode screen updates were unreliable when palette changed. --- diff --git a/od-win32/picasso96_win.cpp b/od-win32/picasso96_win.cpp index 53d08ee4..d0b1c97e 100644 --- a/od-win32/picasso96_win.cpp +++ b/od-win32/picasso96_win.cpp @@ -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; }