Commit Graph

1138 Commits

Author SHA1 Message Date
Chris Young
61c268269a display depth gadget on screenmode requester 2012-08-07 23:09:40 +01:00
Chris Young
6748845042 fix display of favicon in palette-mapped modes 2012-08-07 23:07:16 +01:00
Chris Young
b9446a3abb rename old truecolour function 2012-08-07 21:34:52 +01:00
Chris Young
3ba621759c hide internal palette-mapped and true-colour bitmap conversion functions 2012-08-07 21:28:55 +01:00
Chris Young
2eeb2c07bf more use of abstracted function 2012-08-07 21:25:47 +01:00
Chris Young
0d8aca4f12 use abstracted function 2012-08-07 21:22:51 +01:00
Chris Young
dd7935bb1f abstract the native bitmap fetcher functions, and make the favicon collection use the new one. 2012-08-07 21:09:49 +01:00
Chris Young
391d483c9d expose function to get current screen palette-mapped status 2012-08-07 21:03:42 +01:00
Chris Young
9fac1daff4 ...or it might just crash. Will consider a hybrid mode, as palette-mapped images do not display correctly when blitted to a 16- or 32-bit screen. 2012-08-07 00:07:37 +01:00
Chris Young
a262507b3a If using the gfx.lib true-colour plotters on a 16-bit screenmode, allocate a 16-bit off-screen bitmap instead of a 32-bit one. This _should_ make things a little quicker in that scenario. 2012-08-07 00:00:04 +01:00
Chris Young
0ce133099b fix true colour mode 2012-08-06 19:41:34 +01:00
Chris Young
6ceb8ca9eb fix depth detection 2012-08-06 19:40:51 +01:00
Chris Young
8c6dab520d misc 2012-08-05 23:51:59 +01:00
Chris Young
1ef7336f22 revert begin/endrefresh image avoidance - this isn't the cause of the simplerefresh damage region deadlock 2012-08-05 23:06:01 +01:00
Chris Young
6d602b103e release the pen if it couldn't be added to a list. 2012-08-05 23:01:03 +01:00
Chris Young
b777549cc2 avoid crash if pen list is not set 2012-08-05 22:59:09 +01:00
Chris Young
ff8d7d974c Avoid redrawing palette-mapped images during BeginRefresh/EndRefresh (ie. SimpleRefresh damage redraw) as one of the DataTypes functions are causing an Intuition deadlock. 2012-08-05 22:29:35 +01:00
Chris Young
b2514d5270 Free source BitMap 2012-08-05 21:46:14 +01:00
Chris Young
82c4ea7686 add to list, and release pens 2012-08-05 21:29:57 +01:00
Chris Young
a423eb712d allow setting dithering quality 0-2 2012-08-05 16:22:41 +01:00
Chris Young
25f1acb504 Don't re-layout if this has already been performed 2012-08-05 16:16:18 +01:00
Chris Young
59af85e0b5 disable mask for now, causing colourisation problems 2012-08-05 16:02:25 +01:00
Chris Young
803970589b attempt blit through mask 2012-08-05 15:55:02 +01:00
Chris Young
74e794d7a2 implement scaling 2012-08-05 15:29:20 +01:00
Chris Young
c359b9400b Palette-mapped bitmap support 2012-08-05 15:16:02 +01:00
Chris Young
a46c5ae09f Merge branch 'master' into chris/palette-mapped-plotters 2012-08-05 14:29:12 +01:00
Chris Young
7716143240 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2012-08-05 14:28:10 +01:00
Chris Young
1e02eba193 Ask GID_ICON to redraw itself before we draw over the top of it. Unfortunately it redraws itself as a grey box, rather than the underlying window's backfill hook. 2012-08-05 14:26:41 +01:00
Chris Young
97aabaf49d Test for opaqueness where we create bitmaps in the platform code 2012-08-05 14:02:32 +01:00
Chris Young
28ddb10268 Fix opaqueness test: the alpha channel is the first byte, not the last. 2012-08-05 13:50:14 +01:00
Chris Young
55c08431ee Fix build 2012-08-05 11:37:27 +01:00
Chris Young
d577a48bb7 Abstract pen obtain/release and structure so we can add these to a physical browser window's list 2012-08-05 11:28:48 +01:00
Chris Young
337b0f6724 Allow forcing palette-mapped mode by setting cairo_renderer:-1 2012-08-05 11:04:17 +01:00
Chris Young
34154ebb99 Disable anti-aliasing for palette-mapped modes 2012-08-05 10:48:36 +01:00
Chris Young
1ceced6e67 Free bitmap using correct function 2012-08-05 10:21:39 +01:00
John-Mark Bell
3e2123d9ec Need libdom, libpbl when cross compiling. 2012-08-05 10:16:37 +01:00
Chris Young
5a055e3b05 stop crashing 2012-08-05 10:07:26 +01:00
Chris Young
0f1685f131 add palette-capable OPen function 2012-08-05 09:55:01 +01:00
Chris Young
400d02bc24 Convert the rest of plotters.c to use palette-mapped capable colour selection 2012-08-05 09:51:48 +01:00
Chris Young
eed37af751 Fix colours - rectangles now printing correctly. Fix an 'early' crash caused by unfriendly bitmaps. Text needs fixing. There is also a 'late' crash which makes it unusable. 2012-08-04 23:55:02 +01:00
Chris Young
dad8065f0a move text colour settings into plotters.c, and use palette-map capable function 2012-08-04 18:05:26 +01:00
Chris Young
6f64713977 alloc off-screen bm as friend of screen bm 2012-08-04 17:46:56 +01:00
Chris Young
fce7026484 Attempt to draw palette-mapped rectangles.
Problems:
 1. The DrawInfo structure is returning a depth of 8 for >8-bit screens
 2. Colours are wrong (probably related to our off-screen rendering mechanism)
 3. Pens obtained through ObtainBestPenA() are never freed - we need to keep track of them and somehow work out when it is best to free them.
2012-08-04 16:45:05 +01:00
Chris Young
5f8d9e25ab Allow <16-bit depth in options GUI too 2012-08-04 15:53:19 +01:00
Chris Young
da4968b8e0 Allow selecting <16-bit wcreenmodes so we can easily see what needs doing. 2012-08-04 15:44:57 +01:00
Chris Young
2694a98f81 Remove any forcing of UTF-8 in the clipboard, as internally NetSurf will use the UTF8 chunks now. 2012-08-03 21:04:38 +01:00
Chris Young
3a00eca535 Clear the StopChunks before scanning for the UTF8 chunk, otherwise we risk thinking a CHRS chunk is a UTF8 chunk. 2012-08-03 21:02:29 +01:00
Chris Young
0b0c6a4f6a Support pasting the UTF8 chunk of clipboard IFF FTXT when present, instead of CHRS 2012-08-03 19:19:04 +01:00
Chris Young
c4a4126041 Also write a (duplicate) UTF8 chunk, irregardless of the "UTF-8 clipboard" option. We don't support pasting UTF8 chunks yet. 2012-08-03 18:33:49 +01:00
Chris Young
ca6be72dff Remove extraneous functionage 2012-08-03 18:28:07 +01:00