mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-10 11:19:45 +00:00
renderer: move State declaration to top of file
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
//! This is the render state that is given to a renderer.
|
||||
|
||||
const State = @This();
|
||||
|
||||
const std = @import("std");
|
||||
const assert = std.debug.assert;
|
||||
const Allocator = std.mem.Allocator;
|
||||
@@ -8,8 +10,6 @@ const terminalpkg = @import("../terminal/main.zig");
|
||||
const inputpkg = @import("../input.zig");
|
||||
const renderer = @import("../renderer.zig");
|
||||
|
||||
const State = @This();
|
||||
|
||||
/// The mutex that must be held while reading any of the data in the
|
||||
/// members of this state. Note that the state itself is NOT protected
|
||||
/// by the mutex and is NOT thread-safe, only the members values of the
|
||||
|
||||
Reference in New Issue
Block a user