Commit Graph

40 Commits

Author SHA1 Message Date
Vincent Sanders
6f4f860ce3 Add some debug round thumbnail creation
More debugging of thumbnail creation as it appears to be involved in a
number of recently reported crashes on RISC OS.
2015-03-27 14:39:00 +00:00
Vincent Sanders
8a99b045bc Remove url from content thumbnailers API
The content thumbnailers for each frontend were being provided the
contents url. This was only ever used to call the urldb thumbnail
setting API.

This changes it so the single callsite that passed a valid url adds
the bitmap to that url itself in desktop_history.c instead of forcing
every frontend to require the urldb API.

Additionally the old API could pass the url as NULL which was causing
asserts where this was not an expected parameter value. Because of
this this fixes bug #2286 which was also present in the monkey
frontend as both called nsurl_access() on the url without the NULL
check and caused an assertion.
2015-03-15 00:00:45 +00:00
Vincent Sanders
17be8cf216 Put the font operations table alongside all the other core API
The netsurf core is driven from numerous operation tables most of
which are now set through a common netsurf_register() interface. The
font and plotting interfaces are currently separate and unlike all the
other operation tables are modified for differing contexts.

This change moves the font operations alongside all the other
operations table and remove unnecessary interaction with the renderers
font internals. Further this also removes the need for css internals
to be visible in frontends.
2014-10-13 11:56:31 +01:00
Michael Drake
55b3163520 Reduce scope of a variable. 2014-05-30 23:11:09 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Michael Drake
d9e7d58106 Fix up ripples from urldb change. 2012-10-11 11:20:02 +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
67f2470d5a Pass whether background images are wanted in redraw_context.
svn path=/trunk/netsurf/; revision=13335
2011-12-23 22:39:25 +00:00
Michael Drake
eddae6af06 Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake
55fd1d0133 Front ends don't need to call thumbnail_get_redraw_scale() now.
svn path=/trunk/netsurf/; revision=11946
2011-03-09 21:04:15 +00:00
Michael Drake
b46e69fe22 Purge ro_plot_set_scale() and ro_plot_scale global, as front ends nolonger need to maintain scale for plotting.
svn path=/trunk/netsurf/; revision=11942
2011-03-09 16:20:55 +00:00
Michael Drake
a66575dfeb Remove thumbnail_create() from browser.h. Make RO front end use the core thumbnail_redraw function. Make other front ends include the right header for thumbnail_create().
svn path=/trunk/netsurf/; revision=11716
2011-02-19 22:17:54 +00:00
Michael Drake
fe7921a387 Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested.
svn path=/trunk/netsurf/; revision=11670
2011-02-13 22:25:11 +00:00
Michael Drake
b9e32a9750 Fix for new cache.
svn path=/trunk/netsurf/; revision=10285
2010-04-07 18:01:29 +00:00
John Mark Bell
2b352b5752 Squash warnings
svn path=/trunk/netsurf/; revision=6911
2009-03-27 01:24:32 +00:00
John Tytgat
5f6c2cbff7 - Compiler warning squash
- Changed a lineending \n\r -> \n for a couple of files.
- More code style conformance.

svn path=/trunk/netsurf/; revision=4762
2008-07-26 22:29:15 +00:00
John Tytgat
79022d8ec2 Foresee OSLib 7 and pre-OSLib 7 compatibility
svn path=/trunk/netsurf/; revision=3913
2008-03-10 00:51:51 +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
Richard Wilson
0fa805df8f Fix mask creation for thumbnails.
svn path=/trunk/netsurf/; revision=2806
2006-08-04 19:14:40 +00:00
John Mark Bell
c09eb457df Unify information databases
svn path=/trunk/netsurf/; revision=2519
2006-04-09 23:21:13 +00:00
Michael Drake
e5e1b982d5 Fix spelling in comment.
svn path=/trunk/netsurf/; revision=2518
2006-04-09 20:06:12 +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
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
Richard Wilson
f559054c1a [project @ 2005-06-23 17:24:23 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 2 of 2.

svn path=/import/netsurf/; revision=1762
2005-06-23 17:24:23 +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
James Bursa
65b5ae0f8f [project @ 2005-02-20 13:19:19 by bursa]
Font rewrite, part 3. Note that Draw export and printing are broken by these changes.

svn path=/import/netsurf/; revision=1519
2005-02-20 13:19:19 +00:00
Richard Wilson
02a54d4e98 [project @ 2004-11-10 22:39:33 by rjw]
Fix 8bpp thumbnails.

svn path=/import/netsurf/; revision=1357
2004-11-10 22:39:33 +00:00
Richard Wilson
3276fe3ed8 [project @ 2004-11-03 02:29:01 by rjw]
Changing screenmodes causes font handles to be refound.

svn path=/import/netsurf/; revision=1338
2004-11-03 02:29:01 +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
James Bursa
4ba346daa8 [project @ 2004-10-19 21:16:12 by bursa]
Update to use plotters.

svn path=/import/netsurf/; revision=1325
2004-10-19 21:16:12 +00:00
John Mark Bell
006344401c [project @ 2004-08-15 19:06:23 by jmb]
Rationalise image redraw.
Supply background colour when redrawing contents
Reenable printing of background images
Require Tinct 0.07

svn path=/import/netsurf/; revision=1234
2004-08-15 19:06:24 +00:00
John Mark Bell
9b1cbd7622 [project @ 2004-06-09 20:05:14 by jmb]
Remove magic numbers. Now uses sensible tinct_FOO style flag names

svn path=/import/netsurf/; revision=941
2004-06-09 20:05:14 +00:00
James Bursa
c2ebb7e4de [project @ 2004-05-21 10:29:54 by bursa]
Fix divide-by-zero bug.

svn path=/import/netsurf/; revision=879
2004-05-21 10:29:54 +00:00
Richard Wilson
cc48a49f21 [project @ 2004-04-11 14:30:18 by rjw]
Fixed memory leak.
Fixed background not being cleared for thumbnails that are not oversampled.

svn path=/import/netsurf/; revision=753
2004-04-11 14:30:18 +00:00
Richard Wilson
f61d7fe881 [project @ 2004-04-10 18:19:35 by rjw]
Thumnails now created with a palette to fix incorrect colour rendition.
Thumnails output to a 32bpp sprite where possible.
Thumnails oversampled to improve display if desired.

svn path=/import/netsurf/; revision=744
2004-04-10 18:19:35 +00:00
James Bursa
cff65dfddf [project @ 2004-02-26 17:23:02 by bursa]
Use save area when redirecting to sprite.

svn path=/import/netsurf/; revision=570
2004-02-26 17:23:02 +00:00
James Bursa
7897a98a4c [project @ 2004-02-25 15:12:57 by bursa]
Implement scaling; rewrite desktop/browser; add riscos/thumbnail; rewrite history.

svn path=/import/netsurf/; revision=566
2004-02-25 15:12:58 +00:00