summaryrefslogtreecommitdiff
path: root/render
AgeCommit message (Collapse)Author
2009-12-09Find a valid image to use in the image cache. Fixes bug #1149Dana Jansens
The larger of the width and height has to match. If the smaller matches, then it would have to be resized down to fit inside the area, so that does not count.
2009-12-09Fix for rendering RGBA and Image textures.Dana Jansens
RGBA and Image textures could exceed their tarea if given an x or y offset inside the area that is > 0.
2009-11-21Keep things in 80 columnsDana Jansens
2009-07-04Fix memory corruption when y2sz is 0.Reilly Grant
data is incremented one too many times when y2sz is zero, leading to memory corruption. [ also changed % 2 to & 1 -- Mikael ]
2009-07-04Only open the default font once, then ref it.Mikael Magnusson
As suggested in #3622, we don't need to open the default font for every place that wasn't specified in the theme. Solved a bit differently than the patch given there.
2008-10-27give the compiler hints about what can be kept in registers so that it can ↵Dana Jansens
optimize the gradient code better with all the pointers going on
2008-04-15When icons had a very small aspect ratio, we crashed, don't.Mikael Magnusson
2008-03-08Remove double newlines.Mikael Magnusson
2008-03-05Don't leak auto-scaled RGBA textures.Mikael Magnusson
2008-02-22Add theme options for menu line separators.Dana Jansens
Added: menu.separator.color menu.separator.width menu.separator.padding.width menu.separator.padding.height
2008-02-17Fix some typos in comments.Mikael Magnusson
2008-02-14don't use \n at the end of g_message stringsDana Jansens
2008-02-14don't reference free'd memory, and don't leak memory if the image cache is ↵Dana Jansens
not saving any resized pictures
2008-02-14use g_message not g_print so it can go to the logDana Jansens
2008-02-14pre-calc the sum of a picture added to an RrImage rather than calculating it ↵Dana Jansens
every time
2008-02-14add a bunch of comments for images and image caches. and make the number of ↵Dana Jansens
resized pictures saved in an image tunable per-icon cache.
2008-02-14when resizing images, pick a source image with the same aspect ratio if possibleDana Jansens
2008-02-14Introducing the icon cache.Dana Jansens
If an icon is the same as one in the cache, then it uses that one. icons of different sizes (from the same client) are linked together into one, and resizes of icons are cached and linked to all the various sizes. so you only need one icon in memory for all your terminals now. ya!
2008-02-14backport the changes to render/ from the alttab branch (commit ↵Dana Jansens
3592046b2b26e05ee94c0dd0fed5b7fd5475c198) in master, as the iconcache changes depend on this git show 3592046b -- render
2008-02-14put the char member at the bottom of the struct so that it doesnt mess up ↵Mikael Magnusson
alignment for the other members (assuming the compiler doesn't pad the struct appropriately anyways)
2008-02-14fix min-size calculations for lineart texturesDana Jansens
2008-02-14when drawing and measuring strings in "flow" mode, don't ellipsize so that ↵Dana Jansens
lines can wrap
2008-02-14allow font rendering to use multiple linesDana Jansens
2008-02-14you can create dialog windows called "prompts" which have a message and some ↵Dana Jansens
buttons! they don't do anything interesting yet.
2008-02-14turn the new openbox.png into the default icon.hDana Jansens
2008-02-14split menu overlap into x and y componentsDana Jansens
2008-02-14speed up the pyramid gradient using memcpy's. also make it not crash for ↵Dana Jansens
1px high textures. here are some sample profiling results. pyramid2 is the new code % cumulative self self total time seconds seconds calls ms/call ms/call name 58.78 1.54 1.54 255 6.04 6.04 gradient_pyramid1 40.46 2.60 1.06 255 4.16 4.16 gradient_pyramid2 54.88 2.25 2.25 504 4.46 4.46 gradient_pyramid1 44.88 4.09 1.84 504 3.65 3.65 gradient_pyramid2
2008-02-14remove an XXX comment, the sanity check seems to have worked out fine.Dana Jansens
2008-02-14a small optimization for the vertical gradients, and use the same log(n) ↵Dana Jansens
strategy to use less memcpy's for filling out the horizontal gradients
2008-02-14use memcpy's to speed up vertical gradients too. split the fancy memcpy() ↵Dana Jansens
code out into the repeat_pixel function.
2008-02-14use memcpy's to make splitvertical gradient much faster - using log n ↵Dana Jansens
memcpy's is much quicker than setting a pointer value n times Here are some profiling results. splitvertical1 is the original code, splitvertical2 is some slight improvements in locality for it, and splitvertical3 is the new O(log n) memcpy code % cumulative self self total time seconds seconds calls ms/call ms/call name 49.44 0.88 0.88 1063 0.83 0.83 gradient_splitvertical1 47.19 1.72 0.84 1063 0.79 0.79 gradient_splitvertical2 2.81 1.77 0.05 1063 0.05 0.05 gradient_splitvertical3 i also tested this with 'time' to draw 1000 gradients, and the new code used approximately half the user time, and finished 10 seconds quicker. so yeah, it's magical and works well.
2008-02-14make rendertest exit cleanly when it is unmapped (iconify/desktopchange)Dana Jansens
2008-02-10make white font shadows (negative shadowtint) work right.. this has been ↵Dana Jansens
busted a long time. thank you nvidia.
2008-02-05the title_focused_shadow_color is being set twice, and being overridden by ↵Dana Jansens
the osd color (though not in the texture)
2008-01-27make horizontal gradients faster by not jumping around in memory as muchDana Jansens
2008-01-25Fix some memleaks.Mikael Magnusson
missing RrFontClose for osd_font in two places. missing a g_free(area);
2008-01-16Various fixes for sparse warnings.Mikael Magnusson
Define void functions with (void), not (). Add missing includes. Some functions were declared static but defined non-static. Some variables that should be file static were file global but not used in any other file. prop.h defined a new prop_atoms in each file that included it instead of declaring it extern.
2008-01-11Bug 3359 - redundant pango flagsDana Jansens
2007-09-04Fix using None when it should be NULLMikael Magnusson
2007-09-04Fix shadowed variablesMikael Magnusson
2007-08-05add a commentDana Jansens
2007-08-06Fix some memleaksMikael Magnusson
2007-08-04let you specify the padding y and x independentlyDana Jansens
2007-07-17remove trailing whitespaceMikael Magnusson
2007-07-1480 cols everywhereMikael Magnusson
2007-07-11no more crash in splitvertical. i think i changed the size of the middle ↵Dana Jansens
gradient too. it's always 1px now unless the texture is very small, then it can be 0. if theres a discrepency, the bottom color gets the extra pixel.
2007-06-13let the theme specify all splitgradient colorsDana Jansens
2007-06-13don't alloc/free colors every time splitvertical is drawnDana Jansens
2007-06-10put new things at the bottom of the structDana Jansens
2007-06-10let the shadow be 0-256Dana Jansens