acme: retina scaling for scroll bars, button

R=rsc
http://codereview.appspot.com/6854094
This commit is contained in:
Russ Cox 2012-11-26 00:33:05 -05:00
parent c28224992a
commit c96d832508
2 changed files with 34 additions and 26 deletions

View file

@ -463,12 +463,14 @@ enum
BUFSIZE = Maxblock+IOHDRSZ, /* size from fbufalloc() */
RBUFSIZE = BUFSIZE/sizeof(Rune),
EVENTSIZE = 256,
Scrollwid = 12, /* width of scroll bar */
Scrollgap = 4, /* gap right of scroll bar */
Margin = 4, /* margin around text */
Border = 2 /* line between rows, cols, windows */
};
#define Scrollwid scalesize(display, 12)
#define Scrollgap scalesize(display, 4)
#define Margin scalesize(display, 4)
#define Border scalesize(display, 2)
#define ButtonBorder scalesize(display, 2)
#define QID(w,q) ((w<<8)|(q))
#define WIN(q) ((((ulong)(q).path)>>8) & 0xFFFFFF)
#define FILE(q) ((q).path & 0xFF)