aboutsummaryrefslogtreecommitdiff
path: root/include/draw.h
Commit message (Collapse)AuthorAgeFilesLines
* draw: use int for Cacheinfo x fieldRuss Cox2020-07-181-1/+1
| | | | | | With very large fonts (72pt or so) I see bad cache glyphs, and this fixes it. Not entirely sure exactly which code is overflowing, but something is.
* libdraw: handle larger number of subfontsRuss Cox2020-05-291-2/+3
|
* libdraw: redo default font construction to be hidpi-safeRuss Cox2018-11-161-4/+0
| | | | | | | | | | | | | | | | If $font is not set, the default font is constructed from font data linked into every libdraw binary. That process was different from the usual openfont code, and so it was not hidpi-aware, resulting in very tiny fonts out of the box on hidpi systems, until users set $font. Fix this by using openfont to construct the default font, by recognizing the name *default* when looking for font and subfont file contents. Then all the hidpi scaling applies automatically. As a side effect, the concept of a 'default subfont' is gone, as are display->defaultsubfont, getdefont, and memgetdefont.
* libdraw: add Cursor2, a 32x32 high-res cursorRuss Cox2018-11-151-1/+2
| | | | | | Also add setcursor2, esetcursor2, and draw protocol encoding. Calls to the old setcursor, esetcursor create a 32x32 by pixel doubling when needed.
* 9term, win: work around bsd linker nonsenseRuss Cox2017-01-061-0/+2
| | | | | | Change-Id: Ifcef0636ee1e1fd0f9b06a8d1a99d58fae831318 Reviewed-on: https://plan9port-review.googlesource.com/2780 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: refine hidpi font selectionRuss Cox2015-02-171-0/+1
| | | | | | Change-Id: Id1e6a2630713024a1925ad1341bb9c846f82e93e Reviewed-on: https://plan9port-review.googlesource.com/1171 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: autoscale fonts when moving between low and high dpi screensRuss Cox2015-02-171-1/+16
| | | | | | Change-Id: I6093955b222db89dfe437fb723593b173d888d01 Reviewed-on: https://plan9port-review.googlesource.com/1170 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: add 2*font syntax for scaled fontsRuss Cox2015-02-171-1/+2
| | | | | | | | An experiment. Change-Id: I40660a211b8372701597d80f7e86917e94cccbaa Reviewed-on: https://plan9port-review.googlesource.com/1161 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: change DefaultDPI to 133Russ Cox2012-11-261-1/+1
| | | | | | | Let's see if that's any better. R=rsc http://codereview.appspot.com/6850103
* libdraw: add scalesizeRuss Cox2012-11-251-0/+1
| | | | | R=rsc http://codereview.appspot.com/6855092
* draw.h: add DefaultDPIRuss Cox2012-11-251-1/+2
| | | | | R=rsc http://codereview.appspot.com/6858071
* devdraw, libdraw: add display->dpiRuss Cox2012-11-251-0/+1
| | | | | | | | Fixed at 100 right now, but the plan is to make it accurate and then use it. R=rsc http://codereview.appspot.com/6856091
* new draw interfacersc2006-06-251-6/+24
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-5/+5
|
* use carbon for pasteboardrsc2006-02-281-0/+3
|
* add ABGR32rsc2005-02-151-0/+1
|
* autolibrsc2005-01-041-1/+3
|
* add OLOCKrsc2004-06-111-0/+2
|
* add -W to specify window size.rsc2004-04-291-0/+2
| | | | various other little fixes.
* SunOS can rot in hell.rsc2004-03-261-33/+29
|
* Add the #goo to allow use in C++.rsc2003-11-251-0/+11
| | | | | | Silence a few more warnings. Strip down the mkfiles more. Fix bug in X11 mouse handling, note groups.
* Add drawsetlabel(Display*, char*).rsc2003-11-231-1/+3
| | | | | | Turn window destruction into "hangup" note. Fix (?) snarf buffer management. Add latin1 keyboard translation.
* Various cleanup.rsc2003-10-111-1/+12
|
* Initial revisionrsc2003-09-301-0/+520