diff options
author | hubertf <hubertf@pkgsrc.org> | 1999-12-08 17:25:20 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1999-12-08 17:25:20 +0000 |
commit | 50639d06851d8e55221322cfd4928f0615918707 (patch) | |
tree | a8c97b83a8c7ff45a96fd26da1d031c89c325d85 /graphics/gphoto/patches/patch-ae | |
parent | b0b755d8cc0ba50ace36edc6699a2b24fcc1c58a (diff) | |
download | pkgsrc-50639d06851d8e55221322cfd4928f0615918707.tar.gz |
Update to V0.4.2. Changes:
New patches for FreeBSD, OpenBSD, and NetBSD, Sony DSC F55 library changes,
a Canon A50 library and general fixes, Canon A5 compatibility fixes, Sony
DSC F505 and Sony memory stick adapter support, an HTML Gallery path fix,
and a GNOME desktop entry.
Diffstat (limited to 'graphics/gphoto/patches/patch-ae')
-rw-r--r-- | graphics/gphoto/patches/patch-ae | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/graphics/gphoto/patches/patch-ae b/graphics/gphoto/patches/patch-ae deleted file mode 100644 index b28c597a6b4..00000000000 --- a/graphics/gphoto/patches/patch-ae +++ /dev/null @@ -1,47 +0,0 @@ -$NetBSD: patch-ae,v 1.1.1.1 1999/11/30 00:01:38 dmcmahill Exp $ - ---- kodak/kodak_dc210.c.orig Thu Nov 25 00:00:33 1999 -+++ kodak/kodak_dc210.c Thu Nov 25 00:18:45 1999 -@@ -372,7 +372,7 @@ - - struct termios newt, oldt; - -- serialdev = open(devname, O_RDWR|O_NOCTTY); -+ serialdev = open(devname, O_RDWR|O_NOCTTY|O_NONBLOCK); - - if (serialdev < 0) - error_dialog("Cannot open device"); -@@ -384,10 +384,11 @@ - - /* need the device to be raw. 8 bits no parity on 9600 baud to start. */ - cfmakeraw(&newt); -- newt.c_oflag &= ~CSTOPB; -+ newt.c_cflag &= ~CSTOPB; - newt.c_cflag &= ~PARENB; - newt.c_cflag |= CS8; - newt.c_cflag &= ~PARODD; -+ newt.c_cflag |= CRTSCTS; - - newt.c_cc[VMIN] = 0; - newt.c_cc[VTIME] = 10; -@@ -594,10 +595,16 @@ - memcpy(imData,bmpHeader, sizeof(bmpHeader)); - - /* reverse the thumbnail data */ -- for (j=fileSize-1,i=54; j >= 0 ; j--) -- { -- imData[i++] = picData[j]; -- } -+ /* not only is the data reversed but the image is flipped -+ * left to right -+ */ -+ for (i = 0; i < 72; i++) { -+ for (j = 0; j < 96; j++) { -+ imData[i*96*3+j*3+54] = picData[(71-i)*96*3+j*3+2]; -+ imData[i*96*3+j*3+54+1] = picData[(71-i)*96*3+j*3+1]; -+ imData[i*96*3+j*3+54+2] = picData[(71-i)*96*3+j*3]; -+ } -+ } - - strcpy ( im->image_type, "bmp" ); - im->image_info = NULL; |