mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
renderr/opengl: stylistic
This commit is contained in:
@ -755,7 +755,7 @@ pub fn drawFrame(self: *Metal, surface: *apprt.Surface) !void {
|
|||||||
try self.drawCells(encoder, &self.buf_cells_bg, self.cells_bg);
|
try self.drawCells(encoder, &self.buf_cells_bg, self.cells_bg);
|
||||||
|
|
||||||
// Then draw images under text
|
// Then draw images under text
|
||||||
try self.drawImagePlacements(encoder, self.image_placements.items[0..self.image_text_end]);
|
try self.drawImagePlacements(encoder, self.image_placements.items[self.image_bg_end..self.image_text_end]);
|
||||||
|
|
||||||
// Then draw fg cells
|
// Then draw fg cells
|
||||||
try self.drawCells(encoder, &self.buf_cells, self.cells);
|
try self.drawCells(encoder, &self.buf_cells, self.cells);
|
||||||
|
@ -1683,19 +1683,28 @@ fn drawCellProgram(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw background images first
|
// Draw background images first
|
||||||
try self.drawImages(gl_state, self.image_placements.items[0..self.image_bg_end]);
|
try self.drawImages(
|
||||||
|
gl_state,
|
||||||
|
self.image_placements.items[0..self.image_bg_end],
|
||||||
|
);
|
||||||
|
|
||||||
// Draw our background
|
// Draw our background
|
||||||
try self.drawCells(gl_state, self.cells_bg);
|
try self.drawCells(gl_state, self.cells_bg);
|
||||||
|
|
||||||
// Then draw images under text
|
// Then draw images under text
|
||||||
try self.drawImages(gl_state, self.image_placements.items[self.image_bg_end..self.image_text_end]);
|
try self.drawImages(
|
||||||
|
gl_state,
|
||||||
|
self.image_placements.items[self.image_bg_end..self.image_text_end],
|
||||||
|
);
|
||||||
|
|
||||||
// Drag foreground
|
// Drag foreground
|
||||||
try self.drawCells(gl_state, self.cells);
|
try self.drawCells(gl_state, self.cells);
|
||||||
|
|
||||||
// Draw remaining images
|
// Draw remaining images
|
||||||
try self.drawImages(gl_state, self.image_placements.items[self.image_text_end..]);
|
try self.drawImages(
|
||||||
|
gl_state,
|
||||||
|
self.image_placements.items[self.image_text_end..],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Runs the image program to draw images.
|
/// Runs the image program to draw images.
|
||||||
|
Reference in New Issue
Block a user