Commit Graph

70 Commits

Author SHA1 Message Date
Ole Loots
5acf36b89e Clip only once, not on every drawing primitive... 2013-01-06 23:05:04 +01:00
Ole Loots
ec0c68503d Added function to retrieve current plotter dimensions. 2012-12-07 22:09:59 +01:00
Ole Loots
f4ea103657 Reenabled VDI clipping... 2012-12-04 01:33:37 +01:00
Ole Loots
ccdab30c9a Completet scroll preprocessing, Hotlist fully works. 2012-11-22 00:10:55 +01:00
Ole Loots
5242cd00a4 Fixed syntax error caused by search&replace? 2012-11-07 23:35:43 +01:00
Ole Loots
b806c94c1d Fix warnings, moved prototypes, housekeeping 2012-08-27 20:14:27 +02:00
Ole Loots
bae65c18a9 Default truetype package is now Bitstream Vera.
Truetype font package can now be switched by defines.
2012-08-25 13:52:30 +02:00
Ole Loots
10e5597a94 Removed junk 2012-08-25 05:47:23 +02:00
Ole Loots
2988193e44 Documented font loading / font names. 2012-08-25 05:44:44 +02:00
Ole Loots
c5a84e17f7 Merged some features from framebuffer freetype impl.
- Set default font for font faces which failed to
   load.
 - Lookup more font faces (Cursive, Fantasy).
2012-08-25 05:23:10 +02:00
Ole Loots
ff2f1f1836 Added missing copyright headers 2012-08-24 00:47:37 +02:00
Ole Loots
e454cf3f9c Fix provided by Michale Drake.
Fix freetype nsfont_position_in_string to return nearest, rather than
next.
2012-08-04 02:51:46 +02:00
Ole Loots
e1a9a98e05 Fixed colour type for vs* functions, added comments. 2012-07-25 13:58:38 +02:00
Ole Loots
4ade97334a Changed toolbar_bg_color to type "colour",
Now the toolbar background can be configured
as RGB colour.
2012-07-23 14:48:50 +02:00
Ole Loots
957f9dc7c8 renamed plot functions (use plot_ prefix) 2012-07-23 02:34:21 +02:00
Ole Loots
eb2ec532e8 renmaed plot functions (use plot_ prefix). 2012-07-23 02:30:11 +02:00
Ole Loots
2158ed7bce moved "bitmap_resize()" to bitmap.c 2012-07-23 02:03:09 +02:00
Ole Loots
72a9071cb2 Inline some functions 2012-07-23 00:21:28 +02:00
Ole Loots
f2aa118025 Refactor plot implementation (removed old files) 2012-07-13 22:21:06 +02:00
Ole Loots
37b8c5d83d Plotter refactor: removed one plotter abraction layer. 2012-07-13 22:19:04 +02:00
Ole Loots
bad987b185 added some missing WITH_8BPP_SUPPORT ifdefs.
svn path=/trunk/netsurf/; revision=13974
2012-06-19 23:06:39 +00:00
Ole Loots
2b0781a2f4 Some cleanups and additions required for the toolbar icon redraw.
svn path=/trunk/netsurf/; revision=13937
2012-06-03 17:09:19 +00:00
Ole Loots
6d125e79b3 Fixed prototyp, comments.
svn path=/trunk/netsurf/; revision=13925
2012-05-13 15:33:58 +00:00
Ole Loots
ea411f6c34 Fix typo ( fontbitmap was never destroyed within dtor )
svn path=/trunk/netsurf/; revision=13889
2012-04-24 20:51:52 +00:00
Ole Loots
68cd53ee66 Small font plotter speedup by reducing function calls in a draw glyph loop.
svn path=/trunk/netsurf/; revision=13888
2012-04-24 20:47:38 +00:00
Ole Loots
4204599fb9 Optimized bitmap blitting: cache native (converted) bitmaps.
This required an change to the convert and blit routines - for opaque images, they convert the whole image. Transparent images are still converted on demand and still only the clipped area is converted. This is incomplete - native buffers should be stored in the well known bitmap buffer, but currently the bitmap struct holds a second buffer which contains converted data.

svn path=/trunk/netsurf/; revision=13886
2012-04-19 22:44:49 +00:00
Ole Loots
b400b7c22b Introduced BITMAPF_BUFFER_NATIVE, for fast redraw of bitmaps.
svn path=/trunk/netsurf/; revision=13845
2012-04-10 23:06:21 +00:00
Ole Loots
974f536794 Fixed declarations of set_std_pixel / get_std_pixel
svn path=/trunk/netsurf/; revision=13553
2012-03-22 21:34:13 +00: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
Ole Loots
b9092d6271 Restructured the plotter driver struct and declared misc functions static within the vdi driver.
svn path=/trunk/netsurf/; revision=13519
2012-03-14 22:06:07 +00:00
Ole Loots
2e65e51fc5 Added GD Plotter stub.
svn path=/trunk/netsurf/; revision=13512
2012-03-12 21:24:38 +00:00
Ole Loots
4604f293b7 Removed unused plotter members.
svn path=/trunk/netsurf/; revision=13511
2012-03-12 21:20:18 +00:00
Ole Loots
174b52a0fd more #ifdef WITH_8BPP_SUPPORT
svn path=/trunk/netsurf/; revision=13467
2012-02-25 15:23:00 +00:00
Ole Loots
af89069dad Added missing prototypes.
svn path=/trunk/netsurf/; revision=13382
2012-01-06 22:10:10 +00:00
Ole Loots
097800ff47 Fix rectangle fill, only add/subtract stroke_width when the rectangle has an outline.
svn path=/trunk/netsurf/; revision=13374
2012-01-05 22:38:02 +00:00
Ole Loots
1beb016c47 Reverted last change and only apply color conversion for alpha channel glyphs.
svn path=/trunk/netsurf/; revision=13373
2012-01-03 23:38:51 +00:00
Ole Loots
68466df8a2 Fix clipping and only apply color conversion for hicolor systems.
svn path=/trunk/netsurf/; revision=13372
2012-01-03 23:29:25 +00:00
Ole Loots
5cdfd5a086 It's now possible to render fonts in monochrom mode.
svn path=/trunk/netsurf/; revision=13371
2012-01-03 23:05:27 +00:00
Ole Loots
08e2052c09 removed comment.
svn path=/trunk/netsurf/; revision=13370
2012-01-03 23:03:09 +00:00
Ole Loots
224d882c03 Fixed font plotter init and added flag for monochrom glyph rendering.
svn path=/trunk/netsurf/; revision=13369
2012-01-03 23:02:38 +00:00
Ole Loots
0977543316 Made internal font plotter compatible with 256 colors.
svn path=/trunk/netsurf/; revision=13367
2012-01-02 14:29:16 +00:00
Ole Loots
eef6b2da4f 256 color plotting: Use vdi to rgb lookup table, made transparency a bit better ( the snapshot problem was related to fvdi, no error in code )
svn path=/trunk/netsurf/; revision=13362
2012-01-02 00:08:14 +00:00
Ole Loots
a195728c51 Added support for 8bit displays, having big problems with transparent plots ( snapshot of background isn't always taken from correct position, maybe a bug in fvdi)
svn path=/trunk/netsurf/; revision=13359
2011-12-31 15:21:49 +00:00
Ole Loots
7d4a0be284 Fixed header, made different font plotters optional.
svn path=/trunk/netsurf/; revision=13230
2011-12-04 12:53:03 +00:00
Ole Loots
5f69abb504 release screen-lock when second lock check fails.
svn path=/trunk/netsurf/; revision=13208
2011-11-29 23:19:18 +00:00
Ole Loots
d25f7cc27e make use of non-blocking request for screen lock.
svn path=/trunk/netsurf/; revision=13202
2011-11-29 21:19:26 +00:00
Ole Loots
2f9ac934e6 Draw rectangle outline manually.
svn path=/trunk/netsurf/; revision=13192
2011-11-28 23:29:35 +00:00
Ole Loots
6227acbd50 Properly redraw the rectangle outline
svn path=/trunk/netsurf/; revision=13172
2011-11-23 22:34:38 +00:00
Ole Loots
8b4c96a953 Comment's...
svn path=/trunk/netsurf/; revision=13171
2011-11-23 22:33:02 +00:00
Ole Loots
dfcd555a0e Fix rectangle plotter, process stroke_type.
svn path=/trunk/netsurf/; revision=13149
2011-11-17 21:49:38 +00:00