2 Copyright (C) 1998 BJ Eirich (aka vecna)
\r
3 This program is free software; you can redistribute it and/or
\r
4 modify it under the terms of the GNU General Public License
\r
5 as published by the Free Software Foundation; either version 2
\r
6 of the License, or (at your option) any later version.
\r
7 This program is distributed in the hope that it will be useful,
\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\r
10 See the GNU General Public Lic
\r
11 See the GNU General Public License for more details.
\r
12 You should have received a copy of the GNU General Public License
\r
13 along with this program; if not, write to the Free Software
\r
14 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
\r
19 #include "vdriver.h"
\r
587 char mousepic[] = { xx,00,00,00,
\r
596 sYow, sQuote, ss, ss, ss, ss, sQuotes, slParen, // 40
\r
597 srParen, star, ss, sComma, sMinus,sPeriod, sSlash, s0, // 48
\r
598 s1, s2, s3, s4, s5, s6, s7, s8, // 56
\r
599 s9, sColon, ssemic, ss, ss, sra, sQuest, ss, // 64
\r
600 sbA, sbB, sbC, sbD, sbE, sbF, sbG, sbH, // 72
\r
601 sbI, sbJ, sbK, sbL, sbM, sbN, sbO, sbP, // 80
\r
602 sbQ, sbR, sbS, sbT, sbU, sbV, sbW, sbX, // 88
\r
603 sbY, sbZ, ss, ss, ss, ss, usc, sch, // 96
\r
604 ssA, ssB, ssC, ssD, ssE, ssF, ssG, ssH, // 102
\r
605 ssI, ssJ, ssK, ssL, ssM, ssN, ssO, ssP, // 110
\r
606 ssQ, ssR, ssS, ssT, ssU, ssV, ssW, ssX, // 118
\r
609 unsigned char lastcol=31;
\r
611 void GotoXY(int x1, int y1)
\r
617 void print_char(char c)
\r
623 TCopySprite(fontx,fonty,img[0],5,img+1);
\r
627 void printstring(char *str)
\r
629 for (; *str; ++str)
\r
633 int pixels(char *str)
\r
636 for (pix=0; *str; ++str)
\r
637 pix += *smal_tbl[*str-32]+1;
\r
641 void dec_to_asciiz(int num, char *buf)
\r
643 sprintf(buf,"%d",num);
\r
646 void TextColor(unsigned char newc)
\r
650 while ((int)src < (int) smal_tbl)
\r
652 if (*src==lastcol) *src=newc;
\r