aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextureRender.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-01-03Remove dead / unused codeMathias Gumz1-28/+5
Again: Compiler happy, we are happy.
2013-02-10More subtle brightening of texturesMathias Gumz1-5/+5
2013-02-06Fix bug in renderEllipticGradient()Mathias Gumz1-17/+20
For odd 'widths' and 'heigths' the texture would not be filled completely: Given a 'width' of 5 we would render only 4 instances of x (-2, 1, 0, 1) instead of the needed 5. This results in a texture which looks a bit cut off to the bottom right side.
2013-02-06Minor cosmeticsMathias Gumz1-38/+41
2013-02-06Fix integer overflowMathias Gumz1-1/+1
I forgot this piece in 779618e45d4571bb6a4866aa2e398780f4b4da5d.
2013-02-06Reduces memory footprintMathias Gumz1-7/+5
The buffer for some gradients does not have to be width * height big when two lines are sufficient.
2013-02-06Branchless code for interlacing a textureMathias Gumz1-25/+15
2013-02-06Fix integer overflow for bigger texturesMathias Gumz1-2/+6
2013-01-23Improve calculation of brighter colorsMathias Gumz1-18/+16
The old code did not brighten up "pure" colors like "red", "green" and "blue" at all. The new code use a different precomputed LUT which is based upon simplified vector math, see the comments in FbTk/ColorLUT.cc
2013-01-17Fix bug: actually invert a given TextureMathias Gumz1-1/+1
Stupid typo.
2013-01-13Ensure textures have the correct size bevor applying 'bevel'Mathias Gumz1-7/+8
2013-01-13Optimize inner loop of pixel transfer in TrueColorMathias Gumz1-65/+61
Testing bits-per-pixel in the inner loop is suboptimal, especially since that value does not change. A little helper macro helps to keep the code readable, also improves the situation for StaticGray and PseudoColor.
2013-01-13Use the same lookup-tables for solid and gradient texturesMathias Gumz1-150/+13
2012-11-08Rewrite of FbTk::TextureRenderMathias Gumz1-1125/+627
* much more readable and easier to read code * smaller code * reduced binary size due to removed big lookup-table for square root * simple 'optimizations (lookup tables, packing of data), nothing too fancy
2012-04-10Bugfix: Don't draw the interlace lines 1px too farMathias Gumz1-1/+1
2011-02-22moved rarely used 'cpccpc' out of class declarationMathias Gumz1-11/+12
2011-02-22bugfix: render 'sunken' gradients correctlyMathias Gumz1-1/+1
2011-02-22Bugfix: don't render textures with dimension of 0Mathias Gumz1-1/+4
At least 'invertRGB()' does not like 'width' or 'height' being 0. 341b2f43e511e39dd was triggered by this problem as well.
2010-09-20bugfix: ' floating point exception' due wrongly placed codeMathias Gumz1-1/+2
while integrating the old 'getSqrt()' function into the 'bsqrt()' function i misplaced some code. this lead to 'r' being 0 on the first run. doh.
2010-09-17request explicitly as many elements for the gradient tables as we needMathias Gumz1-16/+6
the next step is to not use 'unsigned int' and then only store 'chars' in it, maybe even using RGBA data instead of separated arrays for r, g and b.
2010-09-17lots of code cleanup, reordering, trimming public API, bugfixesMathias Gumz1-657/+777
## FbTk/ImageControl.hh: * moved 'getSqrt()' over to TextureRender.cc because it is used only there * removed unused members m_root_window * use std::vector<> for colors and for the gradient buffers. ## FbTk/ImageControl.cc: * fixed memory leak in '~ImageControl', 'pixels' where not deleted[] at all. switched to std::vector, non-issue anymore. * moved identical code into functions 'allocateUnallocatedColors', 'initColortables' ## FbTk/TextureRenderer: * removed 'from', 'to', 'interlaced' from class, only used in 'renderGradient()' and are actually part of the given texture. * removed 'xtable', 'ytable' from class, only used in 'renderGradient()' * removed 'colors' from the class, is part of 'control' * moved render actions (invert, bevel1, bevel2, *gradient), they need more love but for now this is sufficient
2010-05-23mostly cosmetic fixes, mainly discovered by 'clang --analyze'Mathias Gumz1-1/+1
reordering of Resource-related stuff was because of "error: explicit specialization of 'getString' after instantiation" complaints.
2008-06-26remove dithering codeMark Tiefenbruck1-271/+3
2008-04-21some fixes for gcc 3.4Thomas Orgis1-1/+1
2008-01-15split Text.hh into Orientation.hh and TextUtils.{cc,hh}Mathias Gumz1-0/+1
2008-01-14moved code a bit around, cleaned up some classesMathias Gumz1-0/+1
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-30remove some (hopefully) unneeded header includesMark Tiefenbruck1-0/+2
2007-06-29updates for compiling with gcc 4.3markt1-0/+5
2006-10-30Cosmetic patch from Slava Semushinmathias1-50/+55
2006-06-21fix nls... notably classify text on conversion whether its for X or simonb1-10/+10
console, plus handle catalogs better.
2006-03-26rotated fonts, buttons, containers. Used for tabs for nowsimonb1-6/+20
2006-03-20minor type-o fix, thanks Semushin Slavafluxgen1-5/+5
2006-02-16updated copyright infomathias1-1/+1
2005-09-03texture limits were hardcoded to 3200 in TextureRender.cc .. this leadmathias1-4/+7
to useless warnings on huge xinerama setups with those nifty 20' or bigger lcds ... we use now screen dimensions to set a sane limit for textures
2005-01-24copyright datemathias1-1/+1
2005-01-11fix for #1099278mathias1-3/+3
2004-11-19svn propset svn:keywords "Id"mathias1-1/+1
2004-10-25i forgot to remove a silly warning :)akir1-2/+1
2004-10-21fix for mipspro: no 'new(nothrow)' available for MIPSpro Compilers: Version ↵akir1-10/+24
7.3.1.3m
2004-10-06tiny forgotten thingy from the MAN :)akir1-1/+3
2004-10-06allocate red, green and blue buffers only for gradientsfluxgen1-33/+40
2004-08-31add autoconf check for std c++ headersrathnor1-2/+6
2004-07-05tiled pixmap fix, patch from dhx (xyx@gm...), see mailing listfluxgen1-4/+8
2004-06-07update NLS string handling...rathnor1-11/+20
2004-01-21nothrowfluxgen1-5/+5
2004-01-21minor stufffluxgen1-9/+8
2004-01-11cleaning, using FbPixmapfluxgen1-70/+60
2003-10-02address some memory issues shown up with valgrindrathnor1-4/+4
2003-08-12added TILED optionfluxgen1-2/+5