diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-08-24 08:32:20 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-08-24 08:32:20 +0000 |
commit | cefbf2feab1cde75ed64df9fea227e37cdadde7e (patch) | |
tree | 4eaa43c1e4240068fc1f8b1b2bfce77f68d341df /editors/ted/files/patch-ab | |
parent | Add ruby-romp, the Ruby Object Message Proxy, a set of classes for (diff) |
Add ted-2.10
Ted is a text editor running under X Windows on Unix/Linux systems. Ted was
developed as an operating system accessory like Wordpad on MS-Windows.
Features
--------
* Wysiwyg rich text editing.
* Ted uses Microsoft RTF as its native file format.
* In line bitmap pictures.
* Postscript printing.
* Spelling checking in several Latin languages. (English, Dutch, German,
Portuguese, French and Spanish.)
* Directly mailing documents from Ted.
* Cut/Copy/Paste, also with other applications.
* Find/Replace.
* Ruler: Paragraph indentation, Indentation of first line, Tabs.
* Copy/Paste
Ruler.
* Page breaks.
* Tables: Insert Table, Row, Column. Changing the column width of tables
with their ruler.
* Symbols and accented characters are fully supported.
* Hyperlinks.
* Saving a document in HTML format.
Obtained from: OpenBSD
Diffstat (limited to 'editors/ted/files/patch-ab')
-rw-r--r-- | editors/ted/files/patch-ab | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/editors/ted/files/patch-ab b/editors/ted/files/patch-ab new file mode 100644 index 000000000000..d3f8c4de6f44 --- /dev/null +++ b/editors/ted/files/patch-ab @@ -0,0 +1,106 @@ +$OpenBSD: patch-bitmap_bmpng_c,v 1.1 2001/07/13 13:28:26 espie Exp $ +--- bitmap/bmpng.c.orig Fri Jul 13 15:07:41 2001 ++++ bitmap/bmpng.c Fri Jul 13 15:15:19 2001 +@@ -148,7 +148,7 @@ int bmReadPngFile( const char * filenam + FILE * f; + + png_struct png; +- png_info pngi; ++ png_infop pngi; + + unsigned char * buffer; + +@@ -167,30 +167,30 @@ int bmReadPngFile( const char * filenam + if ( setjmp( png.jmpbuf ) ) + { + SDEB(filename); +- png_read_destroy( &png, &pngi, (png_info *)0 ); ++ png_read_destroy( &png, pngi, (png_info *)0 ); + fclose( f ); + return -1; + } + +- png_info_init( &pngi ); ++ pngi = png_create_info_struct(&png); + png_read_init( &png ); + + png_init_io( &png, f ); + +- png_read_info( &png, &pngi ); ++ png_read_info( &png, pngi ); + +- if ( bpPngiToBitmap( &pngi, bd ) ) ++ if ( bpPngiToBitmap( pngi, bd ) ) + { + LLDEB(bd->bdColorCount,bd->bdRGB8Palette); +- png_read_destroy( &png, &pngi, (png_info *)0 ); ++ png_read_destroy( &png, pngi, (png_info *)0 ); + fclose( f ); + return -1; + } + +- if ( bmPngReadContents( &pngi, &png, bd, &buffer ) ) ++ if ( bmPngReadContents( pngi, &png, bd, &buffer ) ) + { + LLDEB(bd->bdBufferLength,buffer); +- png_read_destroy( &png, &pngi, (png_info *)0 ); ++ png_read_destroy( &png, pngi, (png_info *)0 ); + fclose( f ); + return -1; + } +@@ -200,6 +200,8 @@ int bmReadPngFile( const char * filenam + *pBuffer= buffer; + *pPrivateFormat= 0; + ++ png_destroy_info_struct(&png, &pngi); ++ + return 0; + } + +@@ -227,37 +229,38 @@ int bmPngReadPng( BitmapDescription * bd + SimpleInputStream * sis ) + { + png_struct png; +- png_info pngi; ++ png_infop pngi; + + unsigned char * buffer; + + if ( setjmp( png.jmpbuf ) ) +- { LDEB(1); png_read_destroy( &png, &pngi, (png_info *)0 ); return -1; } ++ { LDEB(1); png_read_destroy( &png, pngi, (png_info *)0 ); return -1; } + +- png_info_init( &pngi ); ++ pngi = png_create_info_struct(&png); + png_read_init( &png ); + + png_init_io( &png, (FILE *)0 ); + png_set_read_fn( &png, (void *)sis, bmReadPngBytes ); + +- png_read_info( &png, &pngi ); ++ png_read_info( &png, pngi ); + +- if ( bpPngiToBitmap( &pngi, bd ) ) ++ if ( bpPngiToBitmap( pngi, bd ) ) + { + LLDEB(bd->bdColorCount,bd->bdRGB8Palette); +- png_read_destroy( &png, &pngi, (png_info *)0 ); ++ png_read_destroy( &png, pngi, (png_info *)0 ); + return -1; + } + +- if ( bmPngReadContents( &pngi, &png, bd, &buffer ) ) ++ if ( bmPngReadContents( pngi, &png, bd, &buffer ) ) + { + LLDEB(bd->bdBufferLength,buffer); +- png_read_destroy( &png, &pngi, (png_info *)0 ); ++ png_read_destroy( &png, pngi, (png_info *)0 ); + return -1; + } + + *pBuffer= buffer; + ++ png_destroy_info_struct(&png, &pngi); + return 0; + } + |