aboutsummaryrefslogtreecommitdiffstats
path: root/draw.c
Commit message (Collapse)AuthorAgeFilesLines
* also cache XftColorAllocName, for the same reasonHEADmasterJesse Luehrs2012-02-211-4/+10
|
* cache return values of XAllocNamedColorJesse Luehrs2012-02-211-5/+11
| | | | round trip to the server on every color lookup is pretty bad
* Updated READMEgotmor2010-06-131-1/+1
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@270 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fix parsing in ^ca(), thanks to Michael Stapelberggotmor2010-06-131-1/+4
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@269 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* added support for nested ^ca() commands, thanks to Devin J. Pohlygotmor2010-06-131-4/+11
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@268 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* applied Justin Bogner's XFT patchgotmor2009-10-241-1/+2
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@267 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed reverse colour bug with XFT fonts in menu modegotmor2009-04-231-0/+26
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@263 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* corrected typo in draw.cgotmor2009-03-301-2/+2
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@261 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* corrected xft string width calculation in draw.c:textnw()gotmor2009-03-211-1/+1
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@259 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* get_sens_areas: initialize cmd array to 0 before applying sscanfgotmor2009-03-111-0/+1
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@258 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed ^p() oddities with XFT fontsgotmor2009-03-111-1/+1
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@257 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* replaced %s by %c in get_sens_area()gotmor2009-03-101-1/+1
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@256 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* applied patch from Philip Lewis:gotmor2009-02-271-283/+100
| | | | | | | | | | | | | | * refactored out big block of duplicated code in draw.c:parse_line() * y tracking for clickable areas * fixed bug where having position locked at end of line could screw up autoresize * "block align" formatting command: ^ba(width,align) * added optional arguments to menuprint actions git-svn-id: http://dzen.googlecode.com/svn/trunk@255 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* made ^ca() to always bind to the title windowgotmor2009-02-131-22/+26
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@252 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* first bloody support for ^ca(button,cmd) ... ^ca()gotmor2009-02-131-4/+43
| | | | | | | | | | as of now it has the following limitations: * only works in the title window * does not work with "-expand" * probably some other issues git-svn-id: http://dzen.googlecode.com/svn/trunk@251 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* minor changes. comments and codegotmor2009-02-131-1/+1
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@249 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* reverted strlen_utf8() change. now we use default strlen() againgotmor2009-02-121-28/+28
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@248 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* removed "..." truncation indicatorgotmor2009-02-121-19/+3
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@247 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* replaced libc strlen() with optimized strlen_utf8() versiongotmor2009-02-121-28/+28
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@246 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed casting warninggotmor2009-02-121-3/+5
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@245 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* added more commands to parse_non_drawing_commands()gotmor2009-02-121-0/+24
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@244 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* added XFT supportgotmor2009-02-111-2/+100
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@241 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* correct handling of '-geometry' and '-y' options for dzen atgotmor2009-02-021-86/+86
| | | | | | | | | | the bottom of the screen cosmetic code clean ups Courtesy of Valery V. Vorotyntsev git-svn-id: http://dzen.googlecode.com/svn/trunk@240 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed return type of parse_non_drawing_commands()gotmor2008-12-051-0/+1
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@236 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* added some of the actions as in-text commands (e.g.gotmor2008-12-051-14/+76
| | | | | | | ^togglecollapse(), ^exit(), ...) git-svn-id: http://dzen.googlecode.com/svn/trunk@235 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed #ifdef/#endif confusion for "option 1" in config.mkgotmor2008-07-261-2/+2
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@232 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* removed debugging outputgotmor2008-07-251-2/+0
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@231 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* refactored get_rect_vals() and get_circle_vals()gotmor2008-07-201-49/+10
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@227 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* get_token() uses a table now rather then hardcoding the commands intogotmor2008-06-161-72/+33
| | | | | | | the function git-svn-id: http://dzen.googlecode.com/svn/trunk@225 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* positioning labels reworkedgotmor2008-06-161-67/+11
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@224 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* added symbolic names to the ^p() commandgotmor2008-04-091-41/+192
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@223 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed menu mode buggotmor2008-02-081-4/+9
| | | | | | | added a check to determine if we use the pixmap buffer or not git-svn-id: http://dzen.googlecode.com/svn/trunk@216 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* renamed find_icon to search_icon_cachegotmor2008-02-041-51/+50
| | | | | | | | insert_icon to cache_icon reverted to old pixmap handling, i.e. removed opm and the pointers git-svn-id: http://dzen.googlecode.com/svn/trunk@215 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* added a simple pixmap cachegotmor2008-02-011-38/+99
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@214 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* added -fn-preload option to preload fonts at startupgotmor2008-02-011-33/+52
| | | | | | | ^fn() makes use of the preloaded fonts when refenrencing them as dfnt0, dfnt1, ... git-svn-id: http://dzen.googlecode.com/svn/trunk@213 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* default positioninggotmor2008-01-261-1/+1
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@211 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed a leak in freeing opmgotmor2008-01-221-68/+18
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@209 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* reset set_posy only if requestedgotmor2008-01-191-19/+32
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@208 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* ^r(WxH+X+Y) positions relativly to the current posgotmor2008-01-181-7/+30
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@207 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixe in get_rect_vals()gotmor2008-01-171-2/+5
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@206 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed wrong check in get_rect_vals()gotmor2008-01-171-12/+16
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@205 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed bug in get_rect_vals()gotmor2008-01-161-10/+11
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@204 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* applied Mathias Stearn's strncmp() patch to get_token()gotmor2008-01-151-26/+14
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@203 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* positioning fix - hopefully the lastgotmor2008-01-131-3/+4
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@202 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* more positioning fixesgotmor2008-01-131-4/+23
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@201 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed return value in get_pos_vals()gotmor2008-01-131-10/+11
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@200 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed ^fn()gotmor2008-01-131-3/+12
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@199 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* added ^fn() command to dynamically switch fontsgotmor2008-01-131-1/+20
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@198 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fix in positioninggotmor2008-01-121-13/+12
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@197 f2baff5b-bf2c-0410-a398-912abdc3d8b2
* fixed get_pos_vals()gotmor2008-01-111-7/+6
| | | | git-svn-id: http://dzen.googlecode.com/svn/trunk@196 f2baff5b-bf2c-0410-a398-912abdc3d8b2