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

Unified Diff: src/cmd/devdraw/cocoa-srv.c

Issue 6846104: code review 6846104: devdraw: add forcedpi toggled by Fn+F3 on Mac (Closed)
Patch Set: diff -r 27ec22f7be57 https://code.google.com/p/plan9port Created 11 years, 3 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 | « src/cmd/devdraw/cocoa-screen.m ('k') | src/cmd/devdraw/devdraw.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/devdraw/cocoa-srv.c
===================================================================
--- a/src/cmd/devdraw/cocoa-srv.c
+++ b/src/cmd/devdraw/cocoa-srv.c
@@ -367,6 +367,8 @@
keystroke(Kalt);
}
+void resizeimg(void);
+
void
keystroke(int c)
{
@@ -379,6 +381,16 @@
nk = 0;
return;
}
+ if(c == KF+3) {
+ if(forcedpi)
+ forcedpi = 0;
+ else if(displaydpi >= 200)
+ forcedpi = 100;
+ else
+ forcedpi = 225;
+ resizeimg();
+ return;
+ }
if(!alting){
kputc(c);
return;
« no previous file with comments | « src/cmd/devdraw/cocoa-screen.m ('k') | src/cmd/devdraw/devdraw.h » ('j') | no next file with comments »

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