Fix compilation & warnings
This commit is contained in:
@@ -265,7 +265,7 @@ cga_render(cga_t *cga, int line)
|
||||
|
||||
int32_t highres_graphics_flag = (CGA_MODE_FLAG_HIGHRES_GRAPHICS | CGA_MODE_FLAG_GRAPHICS);
|
||||
|
||||
if ((cga->cgamode & highres_graphics_flag == highres_graphics_flag)) {
|
||||
if (((cga->cgamode & highres_graphics_flag) == highres_graphics_flag)) {
|
||||
for (c = 0; c < 8; ++c) {
|
||||
buffer32->line[line][c] = 0;
|
||||
if (cga->cgamode & CGA_MODE_FLAG_HIGHRES)
|
||||
|
||||
@@ -77,7 +77,7 @@ colorplus_write(uint32_t addr, uint8_t val, void *priv)
|
||||
{
|
||||
colorplus_t *colorplus = (colorplus_t *) priv;
|
||||
|
||||
if ((colorplus->control & COLORPLUS_PLANE_SWAP) && (colorplus->control & COLORPLUS_EITHER_MODE) && (colorplus->cga.cgamode & CGA_MODE_FLAG_GRAPHICS) {
|
||||
if ((colorplus->control & COLORPLUS_PLANE_SWAP) && (colorplus->control & COLORPLUS_EITHER_MODE) && (colorplus->cga.cgamode & CGA_MODE_FLAG_GRAPHICS)) {
|
||||
addr ^= 0x4000;
|
||||
} else if (!(colorplus->control & COLORPLUS_EITHER_MODE)) {
|
||||
addr &= 0x3FFF;
|
||||
|
||||
Reference in New Issue
Block a user