//install/video.c |
---|
57,7 → 57,7 |
} |
} |
void video_putstring(int y, int x, unsigned short attr, char *s, int maxlen) { |
void video_putstring(int y, int x, unsigned short attr, const char *s, int maxlen) { |
if (x < 0) { /* means 'center out' */ |
int slen; |
for (slen = 0; s[slen] != 0; slen++); /* faster than strlen() */ |
70,7 → 70,7 |
} |
} |
void video_putstringfix(int y, int x, unsigned short attr, char *s, int w) { |
void video_putstringfix(int y, int x, unsigned short attr, const char *s, int w) { |
x += (y << 6) + (y << 4); /* I use x as an offset now */ |
while (w-- > 0) { |
scr[x++] = attr | *s; |
//install/video.h |
---|
10,8 → 10,8 |
void video_clear(unsigned short attr, int offset, int offsetend); |
void video_putchar(int y, int x, unsigned short attr, int c); |
void video_putcharmulti(int y, int x, unsigned short attr, int c, int repeat, int step); |
void video_putstring(int y, int x, unsigned short attr, char *str, int maxlen); |
void video_putstringfix(int y, int x, unsigned short attr, char *s, int w); |
void video_putstring(int y, int x, unsigned short attr, const char *str, int maxlen); |
void video_putstringfix(int y, int x, unsigned short attr, const char *s, int w); |
void video_movecursor(int y, int x); |
#endif |