Fix the build

This commit is contained in:
Romain Goyet
2015-11-12 11:41:52 +01:00
parent 92a62eea12
commit 1b9101d1d0
2 changed files with 5 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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]);
}
}
}