dev/jenkinsfile (#10)
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user