Commit Graph

56 Commits

Author SHA1 Message Date
Vincent Sanders
4f9dc97141 remove unecessary utils includes from RISC OS frontend 2016-05-02 16:09:28 +01:00
Vincent Sanders
8fd04922cc update RISC OS frontend to not use the depricated warn_user API 2016-04-26 15:16:33 +01:00
Dave Higton
f2e56834be When an image content cannot be converted prevent export as sprite
If an image is not converted, for example it is a CMYK jpeg this
prevents a crash if trying to export the image as a RISC OS sprite.
2015-10-31 15:49:34 +00:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Vincent Sanders
75d3fdc42e Convert RISC OS to use bitmap render operation 2015-04-24 23:49:49 +01:00
Vincent Sanders
8f41764268 Remove unecessary includes from RISC OS bitmap header.
The RISC OS bitmap header was including several headers it simply did
not require. This removed those includes and also cleans up the
documentation comments to completely cover the exported interface.
2015-04-19 12:40:58 +01:00
Vincent Sanders
ad18ef5db9 Update RISC OS frontend to use bitmap operation table 2015-04-15 23:57:39 +01:00
Vincent Sanders
669df172ec Fix my spelling of teh everywhere 2014-11-18 17:16:26 +00:00
Vincent Sanders
9fde3502b6 doxygen cleanups in utils 2014-11-12 23:27:13 +00:00
Michael Drake
ff480312fe Remove BITMAP_READY flag. 2013-10-03 21:07:29 +01:00
Michael Drake
143e553593 Remove redundant bitmap compression/decompression/dropping-to-disc. The core now has a converted bitmap cache that is pruned more agressively. 2013-10-03 19:25:01 +01:00
Michael Drake
d041594fd9 Lose forward declaration. 2013-10-03 17:04:19 +01:00
Michael Drake
dba846b5b8 Remove unused function. 2013-10-03 16:56:05 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Michael Drake
4938723896 Remove last notion of bitmap suspension. 2012-10-14 20:17:17 +01:00
Michael Drake
d88a839937 Remove suspension of bmp/gif images. It's completely redundant with the convert on demand core image cache. 2012-10-14 20:03:18 +01:00
Vincent Sanders
1490b52a6b NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
2012-03-22 09:34:34 +00:00
Michael Drake
2ec96e508c Put RISC OS filetype content handlers in their own directory.
svn path=/trunk/netsurf/; revision=12336
2011-05-09 09:57:40 +00:00
John Mark Bell
0bfed166f5 Squash warnings
svn path=/trunk/netsurf/; revision=6934
2009-03-27 02:46:30 +00:00
Michael Drake
9069119dd5 Fix some wrarnings.
svn path=/trunk/netsurf/; revision=5359
2008-09-16 22:14:39 +00:00
Michael Drake
4fedff41c4 Fix some wrarnings.
svn path=/trunk/netsurf/; revision=5357
2008-09-16 21:15:30 +00:00
Michael Drake
2557b029ae Fix Amiga bitmap_get_bpp to be same as others. (It's bytes per pixel, not bits.) Fix param comments for vbitmap.
svn path=/trunk/netsurf/; revision=5281
2008-09-07 19:08:57 +00:00
James Bursa
33107b160f Merged revisions 4345-4346,4350-4351,4389,4391,4395,4401-4403,4423,4485-4486 via svnmerge from
svn://semichrome.net/branches/dynis/netsurf

........
  r4345 | dynis | 2008-06-15 18:37:23 -0500 (Sun, 15 Jun 2008) | 1 line
  
  Move NetSurf's gifread.h to libnsgif
........
  r4346 | dynis | 2008-06-15 18:38:38 -0500 (Sun, 15 Jun 2008) | 1 line
  
  Remove NetSurf's gifread.c (replaced by libnsgif)
........
  r4350 | dynis | 2008-06-15 18:57:17 -0500 (Sun, 15 Jun 2008) | 1 line
  
  Added references to libnsgif where necessary; corrected function calls where callbacks were implemented
........
  r4351 | dynis | 2008-06-15 19:00:33 -0500 (Sun, 15 Jun 2008) | 1 line
  
  Updated Makefile to compile with libnsgif
........
  r4389 | dynis | 2008-06-18 13:58:51 -0500 (Wed, 18 Jun 2008) | 1 line
  
  Altered bitmap callback table name for gif images to avoid ambiguity when bmp image library is created
........
  r4391 | dynis | 2008-06-18 14:08:39 -0500 (Wed, 18 Jun 2008) | 1 line
  
  Updated netsurf branch to use new bitmap callback table structure name that was altered in libnsgif
........
  r4395 | dynis | 2008-06-18 14:54:51 -0500 (Wed, 18 Jun 2008) | 1 line
  
  Corrected param comments for bitmap_set_suspendable()
........
  r4401 | dynis | 2008-06-18 18:39:50 -0500 (Wed, 18 Jun 2008) | 1 line
  
  Added references to libnsbmp where necessary; corrected function calls where callbacks were implemented
........
  r4402 | dynis | 2008-06-18 18:40:47 -0500 (Wed, 18 Jun 2008) | 1 line
  
  Updated Makefile to compile with libnsbmp
........
  r4403 | dynis | 2008-06-18 18:41:53 -0500 (Wed, 18 Jun 2008) | 1 line
  
  Remove NetSurf's bmpread.c and bmpread.h (replaced by libnsbmp)
........
  r4423 | dynis | 2008-06-22 14:21:30 -0500 (Sun, 22 Jun 2008) | 1 line
  
  Correct a silly mistake in nsbmp_bitmap_create
........
  r4485 | dynis | 2008-07-01 04:13:48 -0500 (Tue, 01 Jul 2008) | 1 line
  
  Integrated the latest versions of libnsgif and libnsbmp into NetSurf
........
  r4486 | dynis | 2008-07-01 05:27:10 -0500 (Tue, 01 Jul 2008) | 1 line
  
  Altered bitmap functions to receive void pointers for proper utilisation of libnsgif and libnsbmp
........

svn path=/trunk/netsurf/; revision=5071
2008-08-12 03:49:34 +00:00
James Bursa
d860d93de2 Check file exists in bitmap_create_file(). Fixes empty local history when Scrap is wiped.
svn path=/trunk/netsurf/; revision=4335
2008-06-15 00:27:22 +00:00
James Bursa
337a2004cc Don't crash when attempting to save a bitmap with no data. This can happen when out of memory.
svn path=/trunk/netsurf/; revision=4332
2008-06-14 23:13:19 +00:00
Adrian Lees
aefa03aed9 Save non-opaque images with a proper mask/full alpha channel
svn path=/trunk/netsurf/; revision=4047
2008-03-24 01:35:13 +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
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
Michael Drake
ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
James Bursa
b51f807fe3 Fix uninformative error message log.
svn path=/trunk/netsurf/; revision=2903
2006-08-30 20:09:02 +00:00
Richard Wilson
cad95f5aca Add ptr_lr shape and iconise outline for pre-RISC OS 5.
svn path=/trunk/netsurf/; revision=2807
2006-08-04 19:18:27 +00:00
John Mark Bell
9eb3efff78 Make filename_create_directory check if directory already exists
Constify return of filename_request
Make bitmap save code check for filename_request failure
Update ro_gui_view_source to take account of constification

svn path=/trunk/netsurf/; revision=2639
2006-06-20 22:58:36 +00:00
Richard Wilson
a2465c779f Remove RISC OS dependencies from filename code.
svn path=/trunk/netsurf/; revision=2540
2006-04-21 23:49:52 +00:00
Adrian Lees
74a86c3751 [project @ 2006-03-24 04:00:27 by adrianl]
Missing #include

svn path=/import/netsurf/; revision=2159
2006-03-24 04:00:27 +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
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
01cc7987c7 [project @ 2006-02-21 22:29:17 by rjw]
Fix broken decompression

svn path=/import/netsurf/; revision=2088
2006-02-21 22:29:17 +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
ef1f971a9a [project @ 2006-01-24 23:05:22 by rjw]
Don't allocate memory until it's actually needed.

svn path=/import/netsurf/; revision=2029
2006-01-24 23:05:22 +00:00
Richard Wilson
2765c12163 [project @ 2006-01-02 22:04:35 by rjw]
Remove redundant externs.

svn path=/import/netsurf/; revision=1957
2006-01-02 22:04:35 +00:00
Richard Wilson
1f9a35369b [project @ 2006-01-02 02:52:53 by rjw]
Allow dynamic memory configuration.

svn path=/import/netsurf/; revision=1938
2006-01-02 02:52:53 +00:00
Richard Wilson
faabbafa38 [project @ 2005-12-31 04:29:00 by rjw]
Improve efficiency of bitmaps not held in memory

svn path=/import/netsurf/; revision=1908
2005-12-31 04:29:00 +00:00
Richard Wilson
17aa1a3ff3 [project @ 2005-12-18 15:53:47 by rjw]
Ensure bitmap dimensions are as expected before decompression.

svn path=/import/netsurf/; revision=1899
2005-12-18 15:53:47 +00:00
Adrian Lees
09768a5008 [project @ 2005-10-01 23:28:46 by adrianl]
Make robust against missing/unexpected thumbnail filenames, eg. saving errors (caused SIGSEGV recursion when starting)

svn path=/import/netsurf/; revision=1869
2005-10-01 23:28:46 +00:00
John Mark Bell
5903845c4a [project @ 2005-09-07 20:22:33 by jmb]
Tighten up error checking.
When loading bitmaps from the disk cache, ensure they look valid.

svn path=/import/netsurf/; revision=1862
2005-09-07 20:22:33 +00:00
Adrian Lees
4a5dc6d5cc [project @ 2005-07-16 05:54:45 by adrianl]
Thumbnails displayed and dragged for full page save; spelling correction

svn path=/import/netsurf/; revision=1793
2005-07-16 05:54:45 +00:00
Adrian Lees
ba6f228418 [project @ 2005-06-26 23:24:03 by adrianl]
Fix calculation of available memory

svn path=/import/netsurf/; revision=1769
2005-06-26 23:24:03 +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
Adrian Lees
89993a5bf2 [project @ 2005-04-15 05:54:44 by adrianl]
Text selection, page drag scrolling, drag-saving images and a few SaveAs improvements

svn path=/import/netsurf/; revision=1640
2005-04-15 05:54:44 +00:00