libframe: auto scale tick for retina

R=rsc
http://codereview.appspot.com/6850102
This commit is contained in:
Russ Cox 2012-11-25 23:48:19 -05:00
parent ffaaaf9dae
commit cc9547960e
3 changed files with 24 additions and 10 deletions

View file

@ -1,7 +1,7 @@
#ifndef _FRAME_H_
#define _FRAME_H_ 1
#if defined(__cplusplus)
extern "C" {
extern "C" {
#endif
AUTOLIB(frame)
@ -19,7 +19,6 @@ enum{
};
#define FRTICKW 3
struct Frbox
{
long wid; /* in pixels */
@ -51,6 +50,7 @@ struct Frame
Image *tickback; /* saved image under tick */
int ticked; /* flag: is tick onscreen? */
int noredraw; /* don't draw on the screen */
int tickscale; /* tick scaling factor */
};
ulong frcharofpt(Frame*, Point);