Commit e293704f authored by Robert Sprowson's avatar Robert Sprowson

Expression evaluation fix

Some missing brackets resulted in interlace always being non-zero and a general lack of video output.
Ref: https://www.riscosopen.org/forum/forums/5/topics/14603

!NoTag
parent 1f78441a
...@@ -182,7 +182,7 @@ static int do_setmode(_kernel_swi_regs *r) ...@@ -182,7 +182,7 @@ static int do_setmode(_kernel_swi_regs *r)
} }
/* Determine interlace setting */ /* Determine interlace setting */
int interlace = (params->SyncPol & (SyncPol_Interlace | SyncPol_InterlaceFields)) == int interlace = (params->SyncPol & (SyncPol_Interlace | SyncPol_InterlaceFields)) ==
SyncPol_Interlace | SyncPol_InterlaceFields; (SyncPol_Interlace | SyncPol_InterlaceFields);
pixelformat format = getformat(params); pixelformat format = getformat(params);
dprintf(("","do_setmode: format %s\n",pixelformatnames[format])); dprintf(("","do_setmode: format %s\n",pixelformatnames[format]));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment