mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
naming(GraphicsAPI): repeat -> presentLastTarget
This commit is contained in:
@@ -242,7 +242,7 @@ pub inline fn present(self: *Metal, target: Target, sync: bool) !void {
|
||||
}
|
||||
|
||||
/// Present the last presented target again. (noop for Metal)
|
||||
pub inline fn repeat(self: *Metal) !void {
|
||||
pub inline fn presentLastTarget(self: *Metal) !void {
|
||||
_ = self;
|
||||
}
|
||||
|
||||
|
@@ -357,7 +357,7 @@ pub fn present(self: *OpenGL, target: Target) !void {
|
||||
}
|
||||
|
||||
/// Present the last presented target again.
|
||||
pub fn repeat(self: *OpenGL) !void {
|
||||
pub fn presentLastTarget(self: *OpenGL) !void {
|
||||
if (self.last_target) |target| try self.present(target);
|
||||
}
|
||||
|
||||
|
@@ -1274,7 +1274,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
||||
// We still need to present the last target again, because the
|
||||
// apprt may be swapping buffers and display an outdated frame
|
||||
// if we don't draw something new.
|
||||
try self.api.repeat();
|
||||
try self.api.presentLastTarget();
|
||||
return;
|
||||
}
|
||||
self.cells_rebuilt = false;
|
||||
|
Reference in New Issue
Block a user