dev/jenkinsfile (#10)
Test / Build
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good

Reviewed-on: #10
Co-authored-by: bQUARKz <bquarkz@gmail.com>
Co-committed-by: bQUARKz <bquarkz@gmail.com>
This commit was merged in pull request #10.
This commit is contained in:
2026-04-08 07:39:33 +00:00
committed by bquarkz
parent 214a189a5f
commit 3453494341
18 changed files with 523 additions and 361 deletions
+6 -9
View File
@@ -872,16 +872,13 @@ impl Gfx {
let glyph = glyph_for_char(c);
let raw = color.0;
let row_start = (-y).max(0).min(5) as usize;
let row_end = (screen_h - y).max(0).min(5) as usize;
let col_start = (-x).max(0).min(3) as usize;
let col_end = (screen_w - x).max(0).min(3) as usize;
let row_start = (-y).clamp(0, 5) as usize;
let row_end = (screen_h - y).clamp(0, 5) as usize;
let col_start = (-x).clamp(0, 3) as usize;
let col_end = (screen_w - x).clamp(0, 3) as usize;
for (row_idx, row) in glyph
.iter()
.enumerate()
.skip(row_start)
.take(row_end.saturating_sub(row_start))
for (row_idx, row) in
glyph.iter().enumerate().skip(row_start).take(row_end.saturating_sub(row_start))
{
let py = (y + row_idx as i32) as usize;
let base = py * self.w;