mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Fix the build
This commit is contained in:
@@ -49,7 +49,10 @@ void KDDrawLine(KDPoint p1, KDPoint p2, KDColor c) {
|
||||
|
||||
KDCoordinate scanCounter = 0;
|
||||
while (scanCounter++ < scanLength) {
|
||||
KDSetPixel(p, c);
|
||||
// FIXME
|
||||
if (p.x>=0 && p.x < 240 && p.y>=0 && p.y<=160) {
|
||||
KDSetPixel(p, c);
|
||||
}
|
||||
p = KDPointTranslate(p, alwaysTranslate);
|
||||
error = error - minusError;
|
||||
if (error <= 0) {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
void KDDrawChar(char character, KDPoint p) {
|
||||
for (int j=0; j<BITMAP_FONT_CHARACTER_HEIGHT;j++) {
|
||||
for (int i=0; i<BITMAP_FONT_CHARACTER_WIDTH;i++) {
|
||||
KDSetPixel(KDPOINT(p.x+i, p.y+j), 0xFF-bitmapFont[character-BITMAP_FONT_FIRST_CHARACTER][j][i]);
|
||||
KDSetPixel(KDPointMake(p.x+i, p.y+j), 0xFF-bitmapFont[character-BITMAP_FONT_FIRST_CHARACTER][j][i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user