Skip to content

Instantly share code, notes, and snippets.

View zhiayang's full-sized avatar
🍣

yuki zhiayang

🍣
  • Singapore
View GitHub Profile
@zhiayang
zhiayang / qemu-patches.patch
Last active September 16, 2020 07:12
patch qemu to make my life better.
diff qemu1/ui/cocoa.m qemu2/ui/cocoa.m
--- qemu1/ui/cocoa.m
+++ qemu2/ui/cocoa.m
@@ -358,5 +358,5 @@ QemuCocoaView *cocoaView;
- (BOOL) screenContainsPoint:(NSPoint) p
{
- return (p.x > -1 && p.x < screen.width && p.y > -1 && p.y < screen.height);
+ return (p.x > -1 && p.x < (screen.width * cdx) && p.y > -1 && p.y < (screen.height * cdx));
}