Platform-specific hacks for high-DPI
Related
More from lottia notes
Here’s a video of the TextMode Designer in use, fixing the control order of a dialog used in the ADC.
Busy working on the ADC lately, but I just happened upon this kind-of-follow-up to the non-intrusive vtable. I have methods implemented by only some “subtypes”, and usually “do nothing” is the correct default, or perhaps “return null”. They end up looking like this: pub fn handleMouseDown( self: Control, b: SDL.MouseButton, clicks:...
Last night in bed, I realised we’d encountered a scenario at work during the day where something happened so fluidly in jujutsu that it’d make a good case story! Let’s compare, step by step, how it’d look with git. The stage is set: you’re working on a big, old, legacy codebase, and you’re 10 commits deep in a branch where you’re adding a new...
I finally got bothered to try jujutsu. It’s often hard to convey just how fast I’m accustomed to moving with git, and so while there are many valid complaints about its interface, object model design, etc., I’m really super fluent with it! So for a long time I was happy to let jujutsu just be a thing people were talking about; simpler or better...
const Control = union(enum) { button: *Controls.Button, menubar: *Controls.Menubar, menu: *Controls.Menu, menu_item: *Controls.MenuItem, editor: *Controls.Editor, fn generation(self: Control) usize { return switch (self) { inline else => |c| c.generation, }; } fn setGeneration(self:...