Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
negativeExponent committed Sep 15, 2024
1 parent a8ab626 commit a250c6d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions x68k/crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ extern int VID_MODE, CHANGEAV_TIMING;

int CRTC_StateAction(StateMem *sm, int load, int data_only)
{
int vidmode, ret;
SFORMAT StateRegs[] =
{
SFARRAY(CRTC_Regs, 48),
Expand Down Expand Up @@ -68,23 +69,23 @@ int CRTC_StateAction(StateMem *sm, int load, int data_only)
SFARRAY(VCReg1, 2),
SFARRAY(VCReg2, 2),

SFVAR(VID_MODE),
SFVAR(vidmode),

SFEND
};

int vidmode, ret;

if (load)
if (!load)
vidmode = VID_MODE;

ret = PX68KSS_StateAction(sm, load, data_only, StateRegs, "X68K_CRTC_VCTRL", false);

if (load)
{
if (vidmode != VID_MODE)
if (VID_MODE != vidmode)
{
CHANGEAV_TIMING = 1;
VID_MODE = vidmode;

}
}

Expand Down

0 comments on commit a250c6d

Please sign in to comment.