mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-24 04:36:10 +03:00
make it claer the config pointer is not stable after renderer/IO init
This commit is contained in:
@ -5,7 +5,9 @@ const font = @import("../font/main.zig");
|
||||
const renderer = @import("../renderer.zig");
|
||||
const Config = @import("../config.zig").Config;
|
||||
|
||||
/// The app configuration.
|
||||
/// The app configuration. This must NOT be stored by any termio implementation.
|
||||
/// The memory it points to is NOT stable after the init call so any values
|
||||
/// in here must be copied.
|
||||
config: *const Config,
|
||||
|
||||
/// The font group that should be used.
|
||||
|
@ -11,7 +11,9 @@ grid_size: renderer.GridSize,
|
||||
/// The size of the viewport in pixels.
|
||||
screen_size: renderer.ScreenSize,
|
||||
|
||||
/// The app configuration.
|
||||
/// The app configuration. This must NOT be stored by any termio implementation.
|
||||
/// The memory it points to is NOT stable after the init call so any values
|
||||
/// in here must be copied.
|
||||
config: *const Config,
|
||||
|
||||
/// The render state. The IO implementation can modify anything here. The
|
||||
|
Reference in New Issue
Block a user