Bug fixes for 0.20.3 pre-release 2

This commit is contained in:
dan committed 1998-11-03 12:53:26 +00:00
1 parent abde3e0c4e
commit 59eb947539
80 files changed
+1280 -585

No files matched your search

+2 -1
View File
@@ -124,7 +124,7 @@ RCreateXImage(RContext *context, int depth, unsigned width, unsigned height)
}
rximg->info.shmaddr = shmat(rximg->info.shmid, 0, 0);
if ((int)rximg->info.shmaddr < 0) {
if (rximg->info.shmaddr == (void*)-1) {
context->attribs->use_shared_memory = 0;
if (shmctl(rximg->info.shmid, IPC_RMID, 0) < 0)
perror("wrlib:shmctl");
@@ -217,3 +217,4 @@ R_CreateXImageMappedPixmap(RContext *context, RXImage *rximage)
}
#endif /* XSHM */