From 3f109ae805b51b175046c161d926a894b5a5fcc1 Mon Sep 17 00:00:00 2001 From: Yaroslav Kolomiiets Date: Mon, 27 Feb 2017 17:42:37 +0200 Subject: emu/port/devfs-posix.c: POSIXly include fcntl.h --- emu/port/devfs-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emu/port') diff --git a/emu/port/devfs-posix.c b/emu/port/devfs-posix.c index 02c842f4..14cce877 100644 --- a/emu/port/devfs-posix.c +++ b/emu/port/devfs-posix.c @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include -- cgit v1.2.3 From c37e0c076ef818e69e65793aece00aa544f0497e Mon Sep 17 00:00:00 2001 From: Yaroslav Kolomiiets Date: Mon, 27 Feb 2017 17:47:20 +0200 Subject: emu/port/win-x11a.c: keep the highest byte of a pixel in copy32to32 --- emu/port/win-x11a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emu/port') diff --git a/emu/port/win-x11a.c b/emu/port/win-x11a.c index 4fdd295a..65e38eed 100644 --- a/emu/port/win-x11a.c +++ b/emu/port/win-x11a.c @@ -304,7 +304,7 @@ copy32to32(Rectangle r) lp = dp + width; while(dp < lp){ v = *dp++; - w = infernortox11[(v>>16)&0xff]<<16|infernogtox11[(v>>8)&0xff]<<8|infernobtox11[(v>>0)&0xff]<<0; + w = v&(0xff<<24)|infernortox11[(v>>16)&0xff]<<16|infernogtox11[(v>>8)&0xff]<<8|infernobtox11[(v>>0)&0xff]<<0; *wp++ = w; } dp += dx; -- cgit v1.2.3