mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-29 03:47:54 +00:00
content scale change events should also impact viewport padding
This calculates the new padding pixel values and propogates those changes to the renderer.
This commit is contained in:
@@ -20,8 +20,14 @@ pub const Message = union(enum) {
|
||||
/// the size changes.
|
||||
font_size: font.face.DesiredSize,
|
||||
|
||||
/// Change the screen size.
|
||||
screen_size: renderer.ScreenSize,
|
||||
/// Changes the screen size.
|
||||
resize: struct {
|
||||
/// The full screen (drawable) size. This does NOT include padding.
|
||||
screen_size: renderer.ScreenSize,
|
||||
|
||||
/// The explicit padding values.
|
||||
padding: renderer.Padding,
|
||||
},
|
||||
|
||||
/// The derived configuration to update the renderer with.
|
||||
change_config: struct {
|
||||
|
||||
Reference in New Issue
Block a user