|
@@ -204,7 +204,7 @@ TYPE
|
|
bmp*: Bitmap;
|
|
bmp*: Bitmap;
|
|
charW*, charH*: INTEGER;
|
|
charW*, charH*: INTEGER;
|
|
charRows*, charsInRow*: INTEGER;
|
|
charRows*, charsInRow*: INTEGER;
|
|
- sprites*: POINTER TO ARRAY OF ARRAY OF SDL.Rect
|
|
|
|
|
|
+ sprites*: POINTER [1] TO ARRAY OF ARRAY OF SDL.Rect
|
|
END;
|
|
END;
|
|
|
|
|
|
KeyArray = SDL.KeyArray;
|
|
KeyArray = SDL.KeyArray;
|
|
@@ -684,6 +684,7 @@ BEGIN
|
|
font.charW := charW; font.charH := charH;
|
|
font.charW := charW; font.charH := charH;
|
|
font.charsInRow := font.bmp.w DIV charW;
|
|
font.charsInRow := font.bmp.w DIV charW;
|
|
font.charRows := font.bmp.h DIV charH;
|
|
font.charRows := font.bmp.h DIV charH;
|
|
|
|
+ (*!FIXME remove sprites from here at all*)
|
|
NEW(font.sprites, font.charRows, font.charsInRow);
|
|
NEW(font.sprites, font.charRows, font.charsInRow);
|
|
sy := 0;
|
|
sy := 0;
|
|
FOR y := 0 TO font.charRows - 1 DO
|
|
FOR y := 0 TO font.charRows - 1 DO
|