Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(574)

Unified Diff: src/cmd/samterm/flayer.h

Issue 6844083: code review 6844083: samterm: retina scaling for scroll bars, borders (Closed)
Patch Set: diff -r 00254e4bf42a https://code.google.com/p/plan9port Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/cmd/samterm/flayer.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/samterm/flayer.h
===================================================================
--- a/src/cmd/samterm/flayer.h
+++ b/src/cmd/samterm/flayer.h
@@ -41,10 +41,11 @@
void flstart(Rectangle);
void flupfront(Flayer*);
Flayer *flwhich(Point);
+int flscale(Flayer*, int);
-#define FLMARGIN 4
-#define FLSCROLLWID 12
-#define FLGAP 4
+#define FLMARGIN(l) flscale(l, 4)
+#define FLSCROLLWID(l) flscale(l, 12)
+#define FLGAP(l) flscale(l, 4)
extern Image *maincols[NCOL];
extern Image *cmdcols[NCOL];
« no previous file with comments | « no previous file | src/cmd/samterm/flayer.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b