Fixed a compile-breaking mistake in vid_cl_gd.c.

This commit is contained in:
OBattler
2018-02-03 23:35:23 +01:00
parent 2707de9925
commit 5a7acba743

View File

@@ -8,13 +8,13 @@
* *
* Emulation of select Cirrus Logic cards. * Emulation of select Cirrus Logic cards.
* *
* Version: @(#)vid_cl_gd.c 1.0.4 2017/11/04 * Version: @(#)vid_cl_gd.c 1.0.5 2018/02/03
* *
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/> * Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com> * Miran Grca, <mgrca8@gmail.com>
* *
* Copyright 2008-2017 Sarah Walker. * Copyright 2008-2018 Sarah Walker.
* Copyright 2016,2017 Miran Grca. * Copyright 2016-2018 Miran Grca.
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
@@ -209,8 +209,6 @@ void clgd_out(uint16_t addr, uint8_t val, void *p)
svga->crtcreg = val & 0x3f; svga->crtcreg = val & 0x3f;
return; return;
case 0x3D5: case 0x3D5:
if (svga->crtcreg <= 0x18)
val &= mask_crtc[svga->crtcreg];
if ((svga->crtcreg < 7) && (svga->crtc[0x11] & 0x80)) if ((svga->crtcreg < 7) && (svga->crtc[0x11] & 0x80))
return; return;
if ((svga->crtcreg == 7) && (svga->crtc[0x11] & 0x80)) if ((svga->crtcreg == 7) && (svga->crtc[0x11] & 0x80))