summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* surface: Add basic surface enumeratorDaniel Silverstone2020-02-241-0/+11
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* generic: Initialise variable to silence warningDaniel Silverstone2019-08-041-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* plot/generic: Use better UNUSED() equivalentDaniel Silverstone2019-08-031-7/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* 32bpp-xrgb8888: Optimise pixel/colour conversion.Michael Drake2019-08-031-4/+2
| | | | | | | This saves an `&` in the source, but also the compiler spots that `(c >> 16) | (c << 16)` is a rotation. Thanks to Adrian Lees.
* freebsd uses single underscore byte ordering macroVincent Sanders2018-09-071-2/+2
|
* fix dumb typoVincent Sanders2018-09-071-1/+1
|
* fix compile on freebsdVincent Sanders2018-09-071-0/+10
|
* remove broken surface handlers for ABLE and linux framebuffer interfaceVincent Sanders2018-07-293-333/+0
|
* try fixing the mkostemp header issue differentlyVincent Sanders2018-07-291-6/+3
|
* deal with feature macro oddity for mkostempVincent Sanders2018-07-291-0/+9
|
* 8 bit glyph plotter: Squash undefined shift error.Michael Drake2018-07-291-1/+1
| | | | src/plot/common.c:216:83: runtime error: left shift of 170 by 24 places cannot be represented in type 'int'
* Ploygon filling: Fix undefined behaviour.Michael Drake2018-07-291-4/+8
| | | | src/plot/generic.c:243:10: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
* Polygon plotting: Remove dead stores.Michael Drake2018-07-291-1/+0
|
* Code: Repair whitespace.Michael Drake2018-07-291-682/+692
|
* Wayland surface: Squash missing field initializer warning.Michael Drake2018-07-291-5/+5
| | | | | src/surface/wld.c:1085:1: warning: missing initializer for field ‘frame’ of ‘const struct wl_pointer_listener’ [-Wmissing-field-initializers]
* fix unchecked heap allocation returnsVincent Sanders2017-10-156-22/+79
| | | | | | | Alastair Hughes provided a patch in the bug tracker which I based this implementation upon. Closes: #2553
* use the darwin specific macros for endian checkingVincent Sanders2016-09-041-1/+1
| | | | | This is necessary to avoid issues around having the correct macros defined in the darwin environment.
* use correct macro to detect mac os xVincent Sanders2016-09-041-2/+2
|
* cope with mac os X having the endian header somewhere elseVincent Sanders2016-09-041-1/+7
|
* Make endianess detection more robustVincent Sanders2016-09-044-40/+162
| | | | | | | | This moves the byte order detection into the internal plot header and makes teh detection much more robust searching for more macros in common use. This should fix compilation on big endian openBSD systems Thanks to Anthony J. Bentley for a patch used as inspiration for this change
* Fix warning about _GNU_SOURCE already being defined.Michael Drake2016-04-191-1/+0
|
* Fix variable name.Michael Drake2016-04-191-3/+1
|
* Fix colour conversion to 32bpp XBGR surfaces.Ashish Gupta2016-04-191-2/+3
|
* Fix up build of wayland surfaceJohn-Mark Bell2014-11-151-4/+60
|
* Fix rendering of 1bpp glyphs when glyph data is greater than one byte wideMichael Drake2014-07-311-2/+1
|
* Add support for resizable surfaces and implement it for SDL surface.Michael Drake2014-07-261-4/+23
|
* Move private headers out of include/ and into src/Michael Drake2014-07-195-0/+525
| | | | To match our other libraries.
* Allow building for Win32John-Mark Bell2014-01-175-5/+21
|
* A few tidyups.Michael Drake2013-10-301-11/+8
|
* Do tiled rendering by scanline, rather than by tile. Error diffusion now ↵Michael Drake2013-10-291-14/+206
| | | | works across tile boundaries.
* Only memset as much of the error diffusion buffer as is required.Michael Drake2013-10-291-2/+3
|
* Set unused param in SDL_Color struct, to avoid valgrind uninitialised values ↵Michael Drake2013-10-291-0/+1
| | | | from within SDL_BlitSurface.
* Fix 1x1 area scaled plot optimisation.Michael Drake2013-10-291-1/+1
|
* Add tiled bitmap plotting function.Michael Drake2013-10-287-1/+93
|
* Test if we're dithering already before turning it on. (No functional change ↵Michael Drake2013-10-281-6/+14
| | | | atm, but when bitmap tiling is moved into nsfb, error diffusion will be able to cross tile boundaries.)
* Fix buffer length.Michael Drake2013-10-271-1/+1
|
* When destroying framebuffer, ensure any cursor is destroyed.Michael Drake2013-10-232-0/+16
|
* Free plotter function table.Michael Drake2013-10-231-0/+3
|
* Free surface vtable.Michael Drake2013-10-231-0/+1
|
* Fix leak.Michael Drake2013-04-101-0/+4
|
* Wayland surface handler with mouse input based on X surface handlerVincent Sanders2013-04-094-13/+2053
|
* Split 32bpp support into xrgba, xbgr, and common. Should allow for BGR ↵Michael Drake2012-09-306-63/+183
| | | | surfaces as well as RGB.
* Fix error text.Michael Drake2012-09-281-1/+1
|
* Add error diffusion to palette based rendering. Only used for bitmap and ↵Michael Drake2012-09-284-24/+81
| | | | scaled bitmap plots. Doesn't do serpentine path, since that would need changes to the common bitmap rendering code.
* Add palette object. Optimise matching colour in case where we chose the ↵Michael Drake2012-09-275-65/+115
| | | | palette. In other cases, we still have to seach all the colours, but that doesn't ever seem to be used.
* Improve 8bpp palette: 685 RGB levels instead of 884 RGB levels, with ↵Michael Drake2012-09-251-9/+34
| | | | remainder set to true grays. Previous palette had no true grays. Upshot is much better rendering of grayscale images and better rendering of blues, with a bit of loss in reds.
* Add support for offset mouse pointer hotspots.Michael Drake2012-08-012-5/+28
|
* Fix horizontal scroll of internal text. Simplify and optimise internal text ↵Michael Drake2012-07-271-17/+15
| | | | renderer.
* Tiny simplification of freetype glyph renderer.Michael Drake2012-07-261-7/+4
|
* Don't add top clipping to bottom clipping. Fixes internal font rendering.Michael Drake2012-07-261-7/+4
|