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

Unified Diff: src/cmd/devdraw/devdraw.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/devdraw.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/devdraw/devdraw.c
===================================================================
--- a/src/cmd/devdraw/devdraw.c
+++ b/src/cmd/devdraw/devdraw.c
@@ -11,6 +11,7 @@
#include "devdraw.h"
extern void _flushmemscreen(Rectangle);
+int forcedpi = 0;
int displaydpi = 100;
#define NHASH (1<<5)
@@ -1101,7 +1102,10 @@
err = "unknown query";
goto error;
case 'd': /* dpi */
- fmtprint(&fmt, "%11d ", displaydpi);
+ if(forcedpi)
+ fmtprint(&fmt, "%11d ", forcedpi);
+ else
+ fmtprint(&fmt, "%11d ", displaydpi);
break;
}
}
« no previous file with comments | « src/cmd/devdraw/devdraw.h ('k') | no next file » | no next file with comments »

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