]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Don't store color/blanking changes if chipset mode is not active.
authorToni Wilen <twilen@winuae.net>
Sat, 27 Nov 2021 14:55:25 +0000 (16:55 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 27 Nov 2021 14:55:25 +0000 (16:55 +0200)
custom.cpp

index 953d1a03ba3eaa073c6f7a37a2a41772eb4c1a30..9f2da1ea2000cb823dd22b59402ba4ed62566409 100644 (file)
@@ -891,12 +891,13 @@ static void hblank_reset(int hblankpos)
 static void record_color_change2(int hpos, int regno, uae_u32 value)
 {
        color_change *cc;
-       int pos = hpos < 0 ? -hpos : hpos_to_diw(hpos);
 
-       if (scandoubled_line || line_hidden()) {
+       if (scandoubled_line || line_hidden() || nocustom()) {
                return;
        }
 
+       int pos = hpos < 0 ? -hpos : hpos_to_diw(hpos);
+
        // AGA has extra hires pixel delay in color changes
        if ((regno < RECORDED_REGISTER_CHANGE_OFFSET || regno == RECORDED_REGISTER_CHANGE_OFFSET + 0x10c) && aga_mode) {
                if (currprefs.chipset_hr) {