diff options
Diffstat (limited to 'emu/port')
| -rw-r--r-- | emu/port/devfs-posix.c | 2 | ||||
| -rw-r--r-- | emu/port/win-x11a.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 <sys/types.h> #include <sys/stat.h> -#include <sys/fcntl.h> +#include <fcntl.h> #include <sys/socket.h> #include <sys/un.h> #include <utime.h> diff --git a/emu/port/win-x11a.c b/emu/port/win-x11a.c index 3670b260..569287b6 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; |
