shithub: misc

Download patch

ref: 4ffcb7af644c7dcef8a845bf94dcfd159ec01aa6
parent: bd9a6972be2ab52d881e842778731c0122bcaca2
author: Philip Silva <philip.silva@protonmail.com>
date: Tue Jul 12 06:58:19 EDT 2022

update hidpi-3.patch

--- a/README
+++ b/README
@@ -7,3 +7,4 @@
               (p9p commit c96d832)
 - hidpi-drawterm-metal-cocoa.patch: hardcodes displaydpi to 200 (https://github.com/Plan9-Archive/drawterm-metal-cocoa)
 - acme-at.patch: can be applied to open paths containing @s (e.g. the internal Go module paths)
+- wikidiff: diff 2 words using wikidiff.com
--- a/hidpi-3.patch
+++ b/hidpi-3.patch
@@ -172,12 +172,10 @@
  	return w;
 --- a/sys/src/libdraw/init.c
 +++ b/sys/src/libdraw/init.c
-@@ -452,5 +465,13 @@
- 	p = d->bufp;
- 	d->bufp += n;
- 	return p;
-+}
-+
+@@ -454,3 +467,10 @@
+  	return p;
+ }
+ 
 +int
 +scalesize(Display *d, int n)
 +{
@@ -184,5 +182,4 @@
 +	if(d == nil || d->dpi <= DefaultDPI)
 +		return n;
 +	return (n*d->dpi+DefaultDPI/2)/DefaultDPI;
- }
- 
++}