Commit Graph

217 Commits

Author SHA1 Message Date
John Mark Bell 1cf46a6792 SignednessWarnings.squash()
Aside from a number of instances of const being cast away (mostly relating to the urldb, which is correct to only export const data) this now builds warning-free with GCC 4 on x86, which is nice.

svn path=/trunk/netsurf/; revision=3868
2008-02-25 17:58:00 +00:00
James Bursa 455aefbb91 Make GIF decoding work correctly on big-endian (colors were wrong).
svn path=/trunk/netsurf/; revision=3854
2008-02-10 00:35:03 +00:00
James Bursa 5c1f3bd8c8 Move SVG code into a new library, libsvgtiny.
svn path=/trunk/netsurf/; revision=3837
2008-02-03 19:11:36 +00:00
James Bursa 13d479785c Fix coordinates when redrawing an SVG within a page.
svn path=/trunk/netsurf/; revision=3661
2007-12-11 02:40:33 +00:00
James Bursa f09ea1d8f1 Implement polyline, polygon, more path segment types, and more transforms.
svn path=/trunk/netsurf/; revision=3659
2007-12-02 05:53:31 +00:00
James Bursa b2c0baffcd Implement and fix more of viewBox, path, and transform.
svn path=/trunk/netsurf/; revision=3655
2007-11-30 03:08:02 +00:00
James Bursa 069525fe89 Add support for transform, color none, and some colours in style attribute.
svn path=/trunk/netsurf/; revision=3654
2007-11-29 05:56:57 +00:00
Rob Kendrick c228658f2d NetBSD doesn't have the timezone struct, either.
svn path=/trunk/netsurf/; revision=3536
2007-09-14 18:22:40 +00:00
Vincent Sanders 2f864eeecc Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
Rob Kendrick f552452b9f Fix warning with rsvg
svn path=/trunk/netsurf/; revision=3485
2007-08-08 15:44:27 +00:00
Rob Kendrick 1522bfeed6 Add incremental parsing of SVG data to librsvg content handler.
svn path=/trunk/netsurf/; revision=3441
2007-07-19 13:47:59 +00:00
Rob Kendrick 8aa4b9e7b3 Fixes to rsvg renderer. Now mostly works for direct (non-embedded in a document) viewing.
svn path=/trunk/netsurf/; revision=3438
2007-07-18 23:57:39 +00:00
Rob Kendrick 04292695be Initial work on RSVG image handler. Still a lot to do.
svn path=/trunk/netsurf/; revision=3433
2007-07-18 17:58:35 +00:00
Rob Kendrick 59f358eb0f Wrap internal SVG renderer with appropriate #ifdef WITH_NS_SVG
svn path=/trunk/netsurf/; revision=3432
2007-07-18 14:49:26 +00:00
Rob Kendrick b70141c17d Wrap jpeg.c with #ifdef WITH_JPEG
svn path=/trunk/netsurf/; revision=3431
2007-07-18 14:47:41 +00:00
James Bursa fe4938d592 Start on implementing SVG <path>.
svn path=/trunk/netsurf/; revision=3427
2007-07-17 02:45:33 +00:00
James Bursa 9cd109060a Add SVG support for a few basic shapes.
svn path=/trunk/netsurf/; revision=3420
2007-07-15 23:22:54 +00:00
James Bursa 59ecedf444 Primitive SVG render (rect, text).
svn path=/trunk/netsurf/; revision=3405
2007-07-13 03:53:14 +00:00
Rob Kendrick 43257a160b Changes to allow building on Solaris.
* Tested on Solaris Express: Developer Edition,
          which is between Solaris 10 and 11.
        * Used gcc, libmng etc packages using pkg-get and blastwave's resources.
        * Had to build lemon and re2c manually.

svn path=/trunk/netsurf/; revision=3350
2007-06-15 22:07:11 +00:00
Daniel Silverstone 6807b4208a Remove the netsurf/ from the include paths and rationalise use of <> vs "" in includes
NetSurf includes are now done with ""s and other system includes with <>s as C intended.
The scandeps tool has been updated to only look for ""ed includes, and to verify that the
files exist in the tree before adding them to the dependency lines. The depend rule has
therefore been augmented to make sure the autogenerated files are built before it is run.

This is untested under self-hosted RISC OS builds. All else tested and works.


svn path=/trunk/netsurf/; revision=3307
2007-05-30 22:39:54 +00:00
John Mark Bell 9cf5122797 Content handlers should not call warn_user - they should broadcast the
error using content_broadcast and leave it to the content owner(s) to 
decide what to do about it.

Only use warn_user for top-level contents.


svn path=/trunk/netsurf/; revision=3204
2007-03-11 22:08:57 +00:00
Richard Wilson 5e783e1266 Ignore common GIF screen size errors (fix 1650225)
svn path=/trunk/netsurf/; revision=3192
2007-03-03 20:02:09 +00:00
Richard Wilson 869d34232b Release temporary PNG/JNG memory as soon as possible
svn path=/trunk/netsurf/; revision=3101
2006-12-03 20:53:56 +00:00
Michael Drake ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
Richard Wilson 148399a7b9 Remove redundant log statements
svn path=/trunk/netsurf/; revision=2698
2006-07-03 01:01:16 +00:00
Adrian Lees 4b03028b51 [project @ 2006-03-24 03:44:33 by adrianl]
Use thumbnails for iconised windows

svn path=/import/netsurf/; revision=2157
2006-03-24 03:44:37 +00:00
Rob Kendrick eb6d84a1a8 [project @ 2006-03-23 04:31:17 by rjek]
Fix decoding of GIF images with more than 127 colours in them (for nsgtk)

svn path=/import/netsurf/; revision=2152
2006-03-23 04:31:17 +00:00
John Mark Bell ea76f90611 [project @ 2006-03-04 20:46:54 by jmb]
Make nsmng_redraw call plot.bitmap

svn path=/import/netsurf/; revision=2105
2006-03-04 20:46:54 +00:00
Richard Wilson 464964cfb6 [project @ 2006-02-28 01:02:37 by rjw]
Render alpha-channel BMPs correctly.

svn path=/import/netsurf/; revision=2100
2006-02-28 01:02:37 +00:00
Richard Wilson 6f654c6f1e [project @ 2006-02-28 00:45:15 by rjw]
Implement bitfield encoding for BMPs. We now correctly decode every image in the BMP test suite at http://pobox.com/~jason1/bmpsuite/

svn path=/import/netsurf/; revision=2099
2006-02-28 00:45:15 +00:00
Richard Wilson 60ea34ad48 [project @ 2006-02-26 02:25:19 by rjw]
Add support for ICO files.

svn path=/import/netsurf/; revision=2096
2006-02-26 02:25:19 +00:00
Richard Wilson da4a9313f1 [project @ 2006-02-25 18:50:34 by rjw]
Support for BMP files

svn path=/import/netsurf/; revision=2095
2006-02-25 18:51:51 +00:00
Richard Wilson 3d9a1198db [project @ 2006-02-22 01:58:19 by rjw]
Reduce constant bitmap overhead per reference by moving to a flag word. Allow bitmaps to be reduced back to their raw data to free extra memory in a highly efficient manner.

svn path=/import/netsurf/; revision=2089
2006-02-22 01:58:19 +00:00
Richard Wilson 4cc85469cb [project @ 2006-02-21 20:49:11 by rjw]
Allow any content to be used as a background. Simplify bitmap code.

svn path=/import/netsurf/; revision=2087
2006-02-21 20:49:12 +00:00
Richard Wilson b95f2f676d [project @ 2006-01-24 23:06:36 by rjw]
Don't decode GIFs until they are required for rendering.

svn path=/import/netsurf/; revision=2031
2006-01-24 23:06:36 +00:00
Richard Wilson ab9856c52a [project @ 2006-01-24 23:05:56 by rjw]
Handle memory failure better.

svn path=/import/netsurf/; revision=2030
2006-01-24 23:05:56 +00:00
Richard Wilson 0631647241 [project @ 2006-01-24 23:04:49 by rjw]
Faster GIF decoding.

svn path=/import/netsurf/; revision=2028
2006-01-24 23:04:49 +00:00
Richard Wilson a88d14018f [project @ 2006-01-01 23:54:37 by rjw]
Optimisation of GIF reading.

svn path=/import/netsurf/; revision=1931
2006-01-01 23:54:37 +00:00
John Mark Bell 98cc71baf6 [project @ 2005-09-17 19:59:02 by jmb]
Hack around PNG as object fallback crash.

svn path=/import/netsurf/; revision=1865
2005-09-17 19:59:02 +00:00
John Mark Bell 07f79c3800 [project @ 2005-07-04 23:21:29 by jmb]
Fix jpeglib.h header location

svn path=/import/netsurf/; revision=1786
2005-07-04 23:21:29 +00:00
Richard Wilson b88a81b9d9 [project @ 2005-06-23 17:22:28 by rjw]
Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2.

svn path=/import/netsurf/; revision=1761
2005-06-23 17:22:28 +00:00
Richard Wilson ec9db1d6af [project @ 2005-04-29 01:35:52 by rjw]
Only initialise canvases if we need to.

svn path=/import/netsurf/; revision=1699
2005-04-29 01:35:52 +00:00
Richard Wilson 06a521f608 [project @ 2005-04-11 01:14:18 by rjw]
Only test opacity on a frame change.

svn path=/import/netsurf/; revision=1624
2005-04-11 01:14:18 +00:00
Richard Wilson 2dcc01332c [project @ 2005-02-03 13:05:29 by rjw]
Add missing #include

svn path=/import/netsurf/; revision=1483
2005-02-03 13:05:29 +00:00
Richard Wilson 42ab950b13 [project @ 2005-02-02 02:05:58 by rjw]
Accomodate further GIF brokenness.

svn path=/import/netsurf/; revision=1481
2005-02-02 02:05:58 +00:00
Richard Wilson 82e4286c5f [project @ 2005-02-01 16:55:11 by rjw]
Animate broken GIFs with frame delays of 0.

svn path=/import/netsurf/; revision=1480
2005-02-01 16:55:11 +00:00
Richard Wilson c604fbe05c [project @ 2005-02-01 01:00:31 by rjw]
Move clipping area cascading to redraw loop (stops progressive decoding having a negative effect.)

svn path=/import/netsurf/; revision=1478
2005-02-01 01:00:31 +00:00
John Mark Bell cba69ab083 [project @ 2005-01-25 21:42:37 by jmb]
Ensure bitmap has been created.

svn path=/import/netsurf/; revision=1468
2005-01-25 21:42:37 +00:00
Richard Wilson 54f903d1b4 [project @ 2005-01-23 15:20:45 by rjw]
Fix for first frame of a GIF animation not always being correctly cleared

svn path=/import/netsurf/; revision=1462
2005-01-23 15:20:45 +00:00
John Mark Bell bca91638bc [project @ 2005-01-02 04:05:21 by jmb]
Begone, redundant code

svn path=/import/netsurf/; revision=1422
2005-01-02 04:05:21 +00:00
John Mark Bell 24dd4aead1 [project @ 2005-01-02 04:04:41 by jmb]
Add asserts, fix error handling for c->title, lose redundant code

svn path=/import/netsurf/; revision=1421
2005-01-02 04:04:41 +00:00
James Bursa ed05aa87f8 [project @ 2004-12-25 11:37:35 by bursa]
Fix line endings.

svn path=/import/netsurf/; revision=1409
2004-12-25 11:37:35 +00:00
Richard Wilson 8de8b08371 [project @ 2004-12-16 14:12:04 by rjw]
Fix for bug when deleting an expanded tree node. JNG/PNG opacity is now tested during the first plot.

svn path=/import/netsurf/; revision=1405
2004-12-16 14:12:04 +00:00
Richard Wilson 32db7e04d0 [project @ 2004-12-09 10:30:43 by rjw]
Re-implementation of hotlist via general tree code. Animations can be stopped once more. Purged a few xcalloc() calls.

svn path=/import/netsurf/; revision=1394
2004-12-09 10:30:44 +00:00
Richard Wilson 542f783b18 [project @ 2004-11-10 19:51:31 by rjw]
Further GIF optimisation to reduce flicker.

svn path=/import/netsurf/; revision=1356
2004-11-10 19:51:32 +00:00
Richard Wilson 061603094a [project @ 2004-11-09 23:34:01 by rjw]
Move GIF decoding out of the plot loop where possible.

svn path=/import/netsurf/; revision=1355
2004-11-09 23:34:01 +00:00
Richard Wilson 4d520be08c [project @ 2004-11-09 21:27:59 by rjw]
Fix for GIF dirty frame clearance bug.

svn path=/import/netsurf/; revision=1353
2004-11-09 21:27:59 +00:00
Richard Wilson 1fbcdd14d5 [project @ 2004-11-02 23:23:07 by rjw]
Fix for recent GIF decoding bug. Rectangular pixel mode-friendly sprites for hotlist. Slight change to history image size to please Tinct. Support for foreground and background image quality settings. Support for error diffusion and bi-linear filtering (Tinct still requires some further work)

svn path=/import/netsurf/; revision=1336
2004-11-02 23:23:07 +00:00
John Mark Bell dcfd2dffe2 [project @ 2004-10-17 21:37:01 by jmb]
Fixup to use plotters.
Someone please fix the png bug. ta ;)

svn path=/import/netsurf/; revision=1321
2004-10-17 21:37:01 +00:00
James Bursa 63a4269651 [project @ 2004-10-17 21:12:32 by bursa]
Replace bitmap_redraw() with plot.bitmap().

svn path=/import/netsurf/; revision=1316
2004-10-17 21:12:32 +00:00
Richard Wilson c0f18cd434 [project @ 2004-10-05 22:38:02 by rjw]
GIF opacity test is now applied to all GIFs. Background colour redraw is optimised out for opaque, repeating images.

svn path=/import/netsurf/; revision=1305
2004-10-05 22:38:02 +00:00
John Mark Bell 4dafc1394f [project @ 2004-10-05 15:42:15 by jmb]
Plug memory leak

svn path=/import/netsurf/; revision=1304
2004-10-05 15:42:15 +00:00
John Mark Bell 93f8d3badc [project @ 2004-10-05 14:36:44 by jmb]
Lose RISC OS specific includes from GIF code.
Fix jpegs for the gtk build.
Allow use of gifs in gtk build.

svn path=/import/netsurf/; revision=1303
2004-10-05 14:36:44 +00:00
Richard Wilson 403f12872d [project @ 2004-10-04 23:54:42 by rjw]
Moved GIF file reading to image/, optimisation of plotting for GIFs, JNGs, PNGs and JPEGs, initial work for toolbar customisation. Possibly some other things too.

svn path=/import/netsurf/; revision=1301
2004-10-04 23:54:42 +00:00
John Mark Bell 101c87958d [project @ 2004-09-04 16:41:28 by jmb]
Fix jpeg redraw
Move png.c/h to /image and rework to use the bitmap code
Make RISC OS bitmap struct publically accessible (via riscos/bitmap.h)
Draw export now embeds JPEGs and PNGs/MNGs/JNGs correctly again.
Background images are now plotted correctly again.

svn path=/import/netsurf/; revision=1268
2004-09-04 16:41:28 +00:00
John Tytgat e223757e35 [project @ 2004-09-04 14:37:57 by joty]
Norcroft compile fixes.

svn path=/import/netsurf/; revision=1267
2004-09-04 14:37:57 +00:00
James Bursa 3371a27391 [project @ 2004-09-03 22:44:47 by bursa]
Add generic bitmap functions. Move jpeg and mng code from riscos/ to image/ and update to use bitmap. Note: background tiling and drawfile export for jpeg and mng/png are broken.

svn path=/import/netsurf/; revision=1265
2004-09-03 22:44:48 +00:00