1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 05:44:11 +01:00

patch to add binary mode on opening files (for Windows+Cygwin compatibility).

This commit is contained in:
dan
2002-09-15 20:37:41 +00:00
parent 3fc803c0d8
commit 92b012e800
20 changed files with 41 additions and 34 deletions

View File

@@ -420,7 +420,7 @@ dumpRImage(char *path, RImage *image)
FILE *f;
int channels = (image->format == RRGBAFormat ? 4 : 3);
f = fopen(path, "w");
f = fopen(path, "wb");
if (!f) {
wsyserror(path);
return;
@@ -1352,7 +1352,7 @@ loadRImage(WMScreen *scr, char *path)
int w, h, d;
Pixmap pixmap;
f = fopen(path, "r");
f = fopen(path, "rb");
if (!f)
return None;