summaryrefslogtreecommitdiffstats
path: root/src/libply/ply-frame-buffer.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix added whitespace error.Peter Jones2008-06-121-1/+1
|
* Add some tracing for the device query/mode verification code.Peter Jones2008-06-121-2/+38
|
* Make a very slight attempt at getting a reasonable video mode, and fail if ↵Peter Jones2008-06-111-31/+42
| | | | we don't have one.
* Check for truecolor in a more direct wayRay Strode2008-06-101-6/+14
|
* Bail if framebuffer is in pseudocolor modeRay Strode2008-06-101-0/+13
|
* Reintroduce fix from eddf693c9ba1efd5fcc4af7ec03a2c3386d4b649Ray Strode2008-06-021-2/+2
| | | | | | It got dropped accidentally in commit 6e5fe71076fe38e5236f68d4c05dcc5bcbc4dbd7 since the function the fix happened in was renamed.
* Add back a FIXME back to the gradient codeRay Strode2008-06-021-0/+8
| | | | | I accidentally dropped the FIXME when I wrote my comments in the last commit.
* Add some comments and macros to krh's nifty new gradient codeRay Strode2008-06-021-12/+56
| | | | | | | It took me a while to understand how the gradient code was preventing banding, so this commit just adds some comments explaing how it works, and moves some constants to preprocessor defines for clarity
* Change color stops in fade-in gradientKristian Høgsberg2008-06-021-23/+24
|
* Implement gradient support for ply-frame-buffer.Kristian Høgsberg2008-06-021-0/+57
|
* add new function ply_frame_buffer_fill_with_hex_color_at_opacityRay Strode2008-05-301-3/+14
| | | | | It's sometimes useful to specify an opacity to fill with for the passed in color, too, independent of its alpha.
* Add new function ply_frame_buffer_fill_with_hex_colorRay Strode2008-05-301-0/+43
| | | | | | The current function for filling the frame buffer with a block color takes 4 doubles. In some cases, it's easier to give the hex value directly.
* Fix bug in union and intersection functionsRay Strode2008-05-291-0/+24
| | | | | | | The x and y values of the flush area are bogus just after a flush when the flush area has a width of 0. We need to special case that situation to perform the union/intersection operations without looking at x and y.
* Add an optimization for full width fills on some hardwareRay Strode2008-05-291-0/+6
| | | | | If we know the rowstride is the same width as the frame buffer then we can memcpy multiple rows at one time.
* Drop defunct prototype for ply_frame_buffer_copy_to_deviceRay Strode2008-05-291-5/+0
| | | | We no longer have that function.
* Hook up xrgb32 flush function.Kristian Høgsberg2008-05-291-1/+28
|
* Do the shadow buffer to frame buffer copy through a function pointer.Kristian Høgsberg2008-05-291-49/+46
| | | | | This allows us to hook in pixel format specific functions for this, but for now the patch just sets up the old code as the generic fallback.
* Random spacing clean upsRay Strode2008-05-281-7/+10
|
* Compute correct offset when copying from shadow buffer to frame bufferRay Strode2008-05-281-2/+2
| | | | | | | | | When I added commit c12164c1622a2209fe07555e682cc479c6854e7e to copy an entire row at a time to the framebuffer, I miscalculated the offset to copy from/to. Their may be uninitialized data at the beginning and end of the temporary row buffer, if only part of the row is getting copied. We need to make sure we jump passed that junk in memory and copy just the part that got filled in.
* Fix same bug in ply_frame_buffer_area_intersect().Kristian Høgsberg2008-05-231-51/+28
|
* Factor out area union code from ply_frame_buffer_add_area_to_flush_area.Kristian Høgsberg2008-05-231-21/+28
|
* Fix bug in area union code.Kristian Høgsberg2008-05-231-10/+18
| | | | | | | | | | ply_frame_buffer_add_area_to_flush_area() computes the wrong area when the new area right of the current area but is wider than the old area. The easiest way to get rectangle intersection right is to just do it on absolute coordinates and then convert back to width and height afterwards.
* Copy a row at a time to the card instead of a pixel at a timeRay Strode2007-12-131-9/+17
|
* Apply patch from Peter Jones to fix video on systems with row stride ↵Ray Strode2007-12-111-23/+23
| | | | different than resolution
* when copying an image to the frame buffer always read from the original width,Ray Strode2007-06-111-1/+1
| | | | even if the image gets clipped
* clean up the frame buffer fill apis to not ask for the width andRay Strode2007-06-081-23/+17
| | | | | height twice (since they are always the same for the source and dest)
* make the new frame buffer area cropping function actually workRay Strode2007-06-081-2/+12
|
* disable partial screen updates for now, because I think it might be buggyRay Strode2007-06-071-0/+8
|
* union the flush areas in the frame buffer more correctly,Ray Strode2007-06-071-10/+44
| | | | crop out of bounds areas
* split the common code off into libply and move things to separate directoriesRay Strode2007-06-061-0/+724