Commit 4e05fcd2 authored by Steven Fuller's avatar Steven Fuller

Fixed the EOF errors on shareware wolf3d (again, it was misnumbered

headers). Renamed most VWB_ functions to VW_.
parent d2e486e1
CC = gcc
CFLAGS = -Wall -O6 -fomit-frame-pointer -ffast-math -funroll-loops -mpentiumpro -mcpu=pentiumpro -march=pentiumpro
#CFLAGS = -g -Wall
#CFLAGS = -Wall -O6 -fomit-frame-pointer -ffast-math -funroll-loops -mpentiumpro -mcpu=pentiumpro -march=pentiumpro
CFLAGS = -g -Wall
#CFLAGS = -g
#CFLAGS = -Os
OBJS = objs.o misc.o id_ca.o id_sd.o id_vh.o id_us.o \
......
......@@ -35,13 +35,7 @@ not leave any artifacts after a few screen redraws)
* and upload builds with lots of wl6 code anyway (sound references were just
ifndefed out)
* verify if the sounds and graphics are correctly numbered, once again...
* find out why shareware version produces these messages:
CA_FarRead only read 471 out of 1671
Trying to free null audio chunk 207!
CA_FarRead hit EOF?
CA_FarRead hit EOF?
CA_FarRead hit EOF?
* if possible fix/or at least add ViewMap?
* add a ViewMap?
* remove the #else at the end of each header since nothing is being doubly
included now (if ever)
* especially with the video functions, there are functions/defines which
......
......@@ -101,7 +101,6 @@ typedef enum {
//
#define STARTPCSOUNDS 0
#define STARTADLIBSOUNDS 81
#define STARTDIGISOUNDS 162
#define STARTMUSIC 243
//
......
......@@ -101,7 +101,6 @@ typedef enum {
//
#define STARTPCSOUNDS 0
#define STARTADLIBSOUNDS 81
#define STARTDIGISOUNDS 162
#define STARTMUSIC 243
//
......
......@@ -5,8 +5,8 @@
//
/////////////////////////////////////////////////
#define NUMSOUNDS 69
#define NUMSNDCHUNKS 234
#define NUMSOUNDS 87
#define NUMSNDCHUNKS 288
//
// Sound names & indexes
......@@ -91,9 +91,8 @@ typedef enum {
// Base offsets
//
#define STARTPCSOUNDS 0
#define STARTADLIBSOUNDS 69
#define STARTDIGISOUNDS 138
#define STARTMUSIC 207
#define STARTADLIBSOUNDS 87
#define STARTMUSIC 261
//
// Music names & indexes
......@@ -129,8 +128,9 @@ typedef enum {
LASTMUSIC
} musicnames;
#define WARMARCH_MUS GETOUT_MUS // TODO: correct?
#define PACMAN_MUS WARMRCH1_MUS // Just changed the values to correspond to wl6
/* TOD: correct? Just changed values to corresspond to wl6 */
#define WARMARCH_MUS GETOUT_MUS
#define PACMAN_MUS WARMRCH1_MUS
/////////////////////////////////////////////////
//
......
......@@ -107,7 +107,6 @@ typedef enum {
//
#define STARTPCSOUNDS 0
#define STARTADLIBSOUNDS 87
#define STARTDIGISOUNDS 174
#define STARTMUSIC 261
//
......
......@@ -182,11 +182,10 @@ typedef enum {
#define LATCHPICS_LUMP_START 103
#define LATCHPICS_LUMP_END 146
//
// Amount of each data item
//
#define NUMCHUNKS 556
#define NUMCHUNKS 156
#define NUMFONT 2
#define NUMFONTM 0
#define NUMPICS 144
......
......@@ -603,7 +603,9 @@ void CAL_SetupMapFile (void)
length = filelength(handle);
MM_GetPtr ((memptr)&tinf,length);
CA_FarRead(handle, tinf, length);
close(handle);
//
......@@ -655,7 +657,7 @@ void CAL_SetupMapFile (void)
void CAL_SetupAudioFile (void)
{
int handle;
int handle, i;
long length;
char fname[13];
......@@ -670,10 +672,13 @@ void CAL_SetupAudioFile (void)
CA_CannotOpen(fname);
length = filelength(handle);
MM_GetPtr ((memptr)&audiostarts,length);
MM_GetPtr((memptr)&audiostarts,length);
CA_FarRead(handle, (byte *)audiostarts, length);
close(handle);
for (i = 0; i < length/4; i++)
printf("chunk %03d: %08ld\n", i, audiostarts[i]);
//
// open the data file
//
......@@ -741,7 +746,7 @@ void CA_Shutdown (void)
void CA_CacheAudioChunk(int chunk)
{
long pos,compressed;
long pos, length;
if (audiosegs[chunk])
{
......@@ -754,13 +759,13 @@ void CA_CacheAudioChunk(int chunk)
// a larger buffer
//
pos = audiostarts[chunk];
compressed = audiostarts[chunk+1]-pos;
length = audiostarts[chunk+1]-pos;
lseek(audiohandle,pos,SEEK_SET);
lseek(audiohandle, pos, SEEK_SET);
MM_GetPtr((memptr)&audiosegs[chunk],compressed);
MM_GetPtr((memptr)&audiosegs[chunk], length);
CA_FarRead(audiohandle,audiosegs[chunk],compressed);
CA_FarRead(audiohandle,audiosegs[chunk], length);
}
void CA_UnCacheAudioChunk(int chunk)
......@@ -997,7 +1002,9 @@ void CA_CacheScreen(int chunk)
MM_GetPtr(&bigbufferseg,compressed);
MM_SetLock (&bigbufferseg,true);
CA_FarRead(grhandle,bigbufferseg,compressed);
source = bigbufferseg;
expanded = *(long *)source;
......@@ -1057,10 +1064,10 @@ void CA_CacheMap(int mapnum)
CA_FarRead(maphandle,(byte *)source,compressed);
/*
// unhuffman, then unRLEW
// The huffman'd chunk has a two byte expanded length first
// The resulting RLEW chunk also does, even though it's not really
// needed
unhuffman, then unRLEW
The huffman'd chunk has a two byte expanded length first
The resulting RLEW chunk also does, even though it's not really
needed
*/
expanded = *source;
source++;
......
......@@ -12,7 +12,7 @@ word WindowX,WindowY,WindowW,WindowH;
static boolean US_Started;
void (*USL_MeasureString)(char *,word *,word *) = VW_MeasurePropString,
(*USL_DrawString)(char *) = VWB_DrawPropString;
(*USL_DrawString)(char *) = VW_DrawPropString;
HighScore Scores[MaxScores] = {
{"id software-'92",10000,1},
......@@ -212,7 +212,7 @@ void US_CPrint(char *str)
///////////////////////////////////////////////////////////////////////////
void US_ClearWindow(void)
{
VWB_Bar(WindowX,WindowY,WindowW,WindowH,WHITE);
VW_Bar(WindowX,WindowY,WindowW,WindowH,WHITE);
PrintX = WindowX;
PrintY = WindowY;
}
......
......@@ -6,7 +6,7 @@
pictabletype *pictable;
int px,py;
int px, py;
byte fontcolor,backcolor;
int fontnumber;
......@@ -60,14 +60,6 @@ void VW_MeasurePropString (char *string, word *width, word *height)
VWL_MeasureString(string,width,height,(fontstruct *)grsegs[STARTFONT+fontnumber]);
}
/*
=============================================================================
Double buffer management routines
=============================================================================
*/
void VWB_DrawTile8(int x, int y, int tile)
{
VL_MemToScreen(grsegs[STARTTILE8]+(tile*64), 8, 8, x, y);
......@@ -86,31 +78,6 @@ void VWB_DrawPic(int x, int y, int chunknum)
VL_MemToScreen (grsegs[chunknum],width,height,x,y);
}
void VWB_DrawPropString(char *string)
{
VW_DrawPropString(string);
}
void VWB_Bar(int x, int y, int width, int height, int color)
{
VW_Bar(x,y,width,height,color);
}
void VWB_Plot(int x, int y, int color)
{
VW_Plot(x,y,color);
}
void VWB_Hlin(int x1, int x2, int y, int color)
{
VW_Hlin(x1,x2,y,color);
}
void VWB_Vlin(int y1, int y2, int x, int color)
{
VW_Vlin(y1,y2,x,color);
}
/*
=====================
=
......@@ -124,8 +91,6 @@ void LatchDrawPic(unsigned x, unsigned y, unsigned picnum)
VWB_DrawPic(x*8, y+160, picnum);
}
/* ======================================================================== */
/*
===================
=
......@@ -200,7 +165,6 @@ boolean FizzleFade(unsigned xx, unsigned yy, unsigned width,unsigned height, uns
} while (1);
}
/*
=================
=
......
......@@ -30,12 +30,6 @@ void VW_UpdateScreen (void);
void VWB_DrawTile8(int x, int y, int tile);
void VWB_DrawPic(int x, int y, int chunknum);
void VWB_Bar(int x, int y, int width, int height, int color);
void VWB_DrawPropString(char *string);
void VWB_Plot(int x, int y, int color);
void VWB_Hlin(int x1, int x2, int y, int color);
void VWB_Vlin(int y1, int y2, int x, int color);
extern byte gamepal[];
extern boolean screenfaded;
......@@ -51,6 +45,8 @@ extern boolean screenfaded;
#define VW_FadeOut() VL_FadeOut(0,255,0,0,0,30);
void VW_MeasurePropString(char *string, word *width, word *height);
void VW_DrawPropString(char *string);
boolean FizzleFade(unsigned xoffset, unsigned yoffset, unsigned width,unsigned height, unsigned frames,boolean abortable);
void VL_FadeOut(int start, int end, int red, int green, int blue, int steps);
......
......@@ -6,7 +6,7 @@
/* SDM = 2 */
/* SOD = 3 */
#ifndef WMODE
#define WMODE 1
#define WMODE 3
#endif
#if WMODE == 0
......
......@@ -202,11 +202,11 @@ static char buf[10];
v2 -= 128;
v2 /= 4;
if (v2 < 0)
VWB_Vlin(WindowY + WindowH - 32 + v2,
VW_Vlin(WindowY + WindowH - 32 + v2,
WindowY + WindowH - 32,
WindowX + 8 + (j / 32),BLACK);
else
VWB_Vlin(WindowY + WindowH - 32,
VW_Vlin(WindowY + WindowH - 32,
WindowY + WindowH - 32 + v2,
WindowX + 8 + (j / 32),BLACK);
}
......
......@@ -737,11 +737,11 @@ void DrawPlayBorderSides (void)
xl = 160-viewwidth/2;
yl = (200-STATUSLINES-viewheight)/2;
VWB_Bar (0,0,xl-1,200-STATUSLINES,127);
VWB_Bar (xl+viewwidth+1,0,xl-2,200-STATUSLINES,127);
VW_Bar (0,0,xl-1,200-STATUSLINES,127);
VW_Bar (xl+viewwidth+1,0,xl-2,200-STATUSLINES,127);
VWB_Vlin (yl-1,yl+viewheight,xl-1,0);
VWB_Vlin (yl-1,yl+viewheight,xl+viewwidth,125);
VW_Vlin (yl-1,yl+viewheight,xl-1,0);
VW_Vlin (yl-1,yl+viewheight,xl+viewwidth,125);
}
......@@ -782,17 +782,17 @@ void DrawPlayBorder (void)
{
int xl,yl;
VWB_Bar (0,0,320,200-STATUSLINES,127);
VW_Bar (0,0,320,200-STATUSLINES,127);
xl = 160-viewwidth/2;
yl = (200-STATUSLINES-viewheight)/2;
VWB_Bar (xl,yl,viewwidth,viewheight,0);
VW_Bar (xl,yl,viewwidth,viewheight,0);
VWB_Hlin (xl-1,xl+viewwidth,yl-1,0);
VWB_Hlin (xl-1,xl+viewwidth,yl+viewheight,125);
VWB_Vlin (yl-1,yl+viewheight,xl-1,0);
VWB_Vlin (yl-1,yl+viewheight,xl+viewwidth,125);
VWB_Plot (xl-1,yl+viewheight,124);
VW_Hlin (xl-1,xl+viewwidth,yl-1,0);
VW_Hlin (xl-1,xl+viewwidth,yl+viewheight,125);
VW_Vlin (yl-1,yl+viewheight,xl-1,0);
VW_Vlin (yl-1,yl+viewheight,xl+viewwidth,125);
VW_Plot (xl-1,yl+viewheight,124);
}
......
......@@ -68,7 +68,7 @@ void EndSpear(void)
PrintX = 0;
PrintY = 180;
VWB_Bar(0,180,320,20,0);
VW_Bar(0,180,320,20,0);
US_CPrint (STR_ENDGAME3"\n");
US_CPrint (STR_ENDGAME4);
VW_UpdateScreen ();
......@@ -123,7 +123,7 @@ void Victory (void)
CA_CacheGrChunk(BJCOLLAPSE3PIC);
CA_CacheGrChunk(BJCOLLAPSE4PIC);
VWB_Bar(0,0,320,200,VIEWCOLOR);
VW_Bar(0,0,320,200,VIEWCOLOR);
VWB_DrawPic (124,44,BJCOLLAPSE1PIC);
VW_UpdateScreen ();
VW_FadeIn ();
......@@ -150,7 +150,7 @@ void Victory (void)
CacheLump(LEVELEND_LUMP_START,LEVELEND_LUMP_END);
CA_CacheGrChunk(STARTFONT);
VWB_Bar (0,0,320,200-STATUSLINES,127);
VW_Bar (0,0,320,200-STATUSLINES,127);
Write(18,2,STR_YOUWIN);
......@@ -255,7 +255,7 @@ void Victory (void)
void PG13 (void)
{
VW_FadeOut();
VWB_Bar(0,0,320,200,0x82); // background
VW_Bar(0,0,320,200,0x82); // background
CA_CacheGrChunk (PG13PIC);
VWB_DrawPic (216,110,PG13PIC);
......@@ -498,7 +498,7 @@ void LevelCompleted()
CacheLump(LEVELEND_LUMP_START,LEVELEND_LUMP_END);
ClearSplitVWB (); // set up for double buffering in split screen
VWB_Bar (0,0,320,200-STATUSLINES,127);
VW_Bar (0,0,320,200-STATUSLINES,127);
StartCPMusic(ENDLEVEL_MUS);
//
......@@ -862,11 +862,11 @@ boolean PreloadUpdate(unsigned current, unsigned total)
{
int w = WindowW - 10;
VWB_Bar(WindowX + 5,WindowY + WindowH - 3,w,2,BLACK);
VW_Bar(WindowX + 5,WindowY + WindowH - 3,w,2,BLACK);
w = (w * current) / total;
if (w) {
VWB_Bar(WindowX + 5,WindowY + WindowH - 3,w,2,0x37);
VWB_Bar(WindowX + 5,WindowY + WindowH - 3,w-1,1,0x32);
VW_Bar(WindowX + 5,WindowY + WindowH - 3,w,2,0x37);
VW_Bar(WindowX + 5,WindowY + WindowH - 3,w-1,1,0x32);
}
VW_UpdateScreen();
......@@ -878,7 +878,7 @@ void PreloadGraphics()
DrawLevel();
ClearSplitVWB();
VWB_Bar(0,0,320,200-STATUSLINES,127);
VW_Bar(0,0,320,200-STATUSLINES,127);
VWB_DrawPic(48, 56, GETPSYCHEDPIC);
......@@ -1089,7 +1089,7 @@ void CheckHighScore (long score,word other)
#else
PrintX = 16;
fontnumber = 1;
VWB_Bar (PrintX-2,PrintY-2,145,15,0x9c);
VW_Bar(PrintX-2,PrintY-2,145,15,0x9c);
VW_UpdateScreen ();
backcolor = 0x9c;
fontcolor = 15;
......
......@@ -1388,7 +1388,7 @@ int CP_SaveGame(int quick)
fontnumber=0;
if (!SaveGamesAvail[which])
VWB_Bar(LSM_X+LSItems.indent+1,LSM_Y+which*13+1,LSM_W-LSItems.indent-16,10,BKGDCOLOR);
VW_Bar(LSM_X+LSItems.indent+1,LSM_Y+which*13+1,LSM_W-LSItems.indent-16,10,BKGDCOLOR);
VW_UpdateScreen();
if (US_LineInput(LSM_X+LSItems.indent+2,LSM_Y+which*13+1,input,input,true,31,LSM_W-LSItems.indent-30))
......@@ -1411,7 +1411,7 @@ int CP_SaveGame(int quick)
}
else
{
VWB_Bar(LSM_X+LSItems.indent+1,LSM_Y+which*13+1,LSM_W-LSItems.indent-16,10,BKGDCOLOR);
VW_Bar(LSM_X+LSItems.indent+1,LSM_Y+which*13+1,LSM_W-LSItems.indent-16,10,BKGDCOLOR);
PrintLSEntry(which,HIGHLIGHT);
VW_UpdateScreen();
SD_PlaySound(ESCPRESSEDSND);
......@@ -1614,10 +1614,10 @@ void DrawMouseSens(void)
PrintX=269;
US_Print(STR_FAST);
VWB_Bar(60,97,200,10,TEXTCOLOR);
VW_Bar(60,97,200,10,TEXTCOLOR);
DrawOutline(60,97,200,10,0,HIGHLIGHT);
DrawOutline(60+20*mouseadjustment,97,20,10,0,READCOLOR);
VWB_Bar(61+20*mouseadjustment,98,19,9,READHCOLOR);
VW_Bar(61+20*mouseadjustment,98,19,9,READHCOLOR);
VW_UpdateScreen();
MenuFadeIn();
......@@ -1646,10 +1646,10 @@ void MouseSensitivity(void)
if (mouseadjustment)
{
mouseadjustment--;
VWB_Bar(60,97,200,10,TEXTCOLOR);
VW_Bar(60,97,200,10,TEXTCOLOR);
DrawOutline(60,97,200,10,0,HIGHLIGHT);
DrawOutline(60+20*mouseadjustment,97,20,10,0,READCOLOR);
VWB_Bar(61+20*mouseadjustment,98,19,9,READHCOLOR);
VW_Bar(61+20*mouseadjustment,98,19,9,READHCOLOR);
VW_UpdateScreen();
SD_PlaySound(MOVEGUN1SND);
while(Keyboard[sc_LeftArrow]) IN_CheckAck();
......@@ -1662,10 +1662,10 @@ void MouseSensitivity(void)
if (mouseadjustment<9)
{
mouseadjustment++;
VWB_Bar(60,97,200,10,TEXTCOLOR);
VW_Bar(60,97,200,10,TEXTCOLOR);
DrawOutline(60,97,200,10,0,HIGHLIGHT);
DrawOutline(60+20*mouseadjustment,97,20,10,0,READCOLOR);
VWB_Bar(61+20*mouseadjustment,98,19,9,READHCOLOR);
VW_Bar(61+20*mouseadjustment,98,19,9,READHCOLOR);
VW_UpdateScreen();
SD_PlaySound(MOVEGUN1SND);
while(Keyboard[sc_RightArrow]) IN_CheckAck();
......@@ -1950,7 +1950,7 @@ void EnterCtrlData(int index,CustomCtrls *cust,void (*DrawRtn)(int),void (*Print
switch(tick)
{
case 0:
VWB_Bar(x,PrintY+1,CST_SPC-2,10,TEXTCOLOR);
VW_Bar(x,PrintY+1,CST_SPC-2,10,TEXTCOLOR);
break;
case 1:
PrintX=x;
......@@ -2116,14 +2116,14 @@ void FixupCustom(int w)
int y=CST_Y+26+w*13;
VWB_Hlin(7,32,y-1,DEACTIVE);
VWB_Hlin(7,32,y+12,BORD2COLOR);
VW_Hlin(7,32,y-1,DEACTIVE);
VW_Hlin(7,32,y+12,BORD2COLOR);
#ifndef SPEAR
VWB_Hlin(7,32,y-2,BORDCOLOR);
VWB_Hlin(7,32,y+13,BORDCOLOR);
VW_Hlin(7,32,y-2,BORDCOLOR);
VW_Hlin(7,32,y+13,BORDCOLOR);
#else
VWB_Hlin(7,32,y-2,BORD2COLOR);
VWB_Hlin(7,32,y+13,BORD2COLOR);
VW_Hlin(7,32,y-2,BORD2COLOR);
VW_Hlin(7,32,y+13,BORD2COLOR);
#endif
switch(w)
......@@ -2138,14 +2138,14 @@ void FixupCustom(int w)
if (lastwhich>=0)
{
y=CST_Y+26+lastwhich*13;
VWB_Hlin(7,32,y-1,DEACTIVE);
VWB_Hlin(7,32,y+12,BORD2COLOR);
VW_Hlin(7,32,y-1,DEACTIVE);
VW_Hlin(7,32,y+12,BORD2COLOR);
#ifndef SPEAR
VWB_Hlin(7,32,y-2,BORDCOLOR);
VWB_Hlin(7,32,y+13,BORDCOLOR);
VW_Hlin(7,32,y-2,BORDCOLOR);
VW_Hlin(7,32,y+13,BORDCOLOR);
#else
VWB_Hlin(7,32,y-2,BORD2COLOR);
VWB_Hlin(7,32,y+13,BORD2COLOR);
VW_Hlin(7,32,y-2,BORD2COLOR);
VW_Hlin(7,32,y+13,BORD2COLOR);
#endif
if (lastwhich!=w)
......@@ -2493,7 +2493,7 @@ void CP_ChangeView(void)
//
void DrawChangeView(int view)
{
VWB_Bar(0,160,320,40,VIEWCOLOR);
VW_Bar(0,160,320,40,VIEWCOLOR);
ShowViewSize(view);
PrintY=161;
......@@ -2546,7 +2546,7 @@ void CP_Quit(void)
void ClearMScreen(void)
{
#ifndef SPEAR
VWB_Bar(0,0,320,200,BORDCOLOR);
VW_Bar(0,0,320,200,BORDCOLOR);
#else
VWB_DrawPic(0,0,C_BACKDROPPIC);
#endif
......@@ -2583,16 +2583,16 @@ void UnCacheLump(int lumpstart, int lumpend)
////////////////////////////////////////////////////////////////////
void DrawWindow(int x,int y,int w,int h,int wcolor)
{
VWB_Bar(x,y,w,h,wcolor);
VW_Bar(x,y,w,h,wcolor);
DrawOutline(x,y,w,h,BORD2COLOR,DEACTIVE);
}
void DrawOutline(int x,int y,int w,int h,int color1,int color2)
{
VWB_Hlin(x,x+w,y,color2);
VWB_Vlin(y,y+h,x,color2);
VWB_Hlin(x,x+w,y+h,color1);
VWB_Vlin(y,y+h,x+w,color1);
VW_Hlin(x,x+w,y,color2);
VW_Vlin(y,y+h,x,color2);
VW_Hlin(x,x+w,y+h,color1);
VW_Vlin(y,y+h,x+w,color1);
}
......@@ -2916,7 +2916,7 @@ int HandleMenu(CP_iteminfo *item_i,CP_itemtype *items,void (*routine)(int w))
//
if (lastitem!=which)
{
VWB_Bar(x-1,y,25,16,BKGDCOLOR);
VW_Bar(x-1,y,25,16,BKGDCOLOR);
PrintX=item_i->x+item_i->indent;
PrintY=item_i->y+which*13;
US_Print((items+which)->string);
......@@ -2960,7 +2960,7 @@ int HandleMenu(CP_iteminfo *item_i,CP_itemtype *items,void (*routine)(int w))
//
void EraseGun(CP_iteminfo *item_i,CP_itemtype *items,int x,int y,int which)
{
VWB_Bar(x-1,y,25,16,BKGDCOLOR);
VW_Bar(x-1,y,25,16,BKGDCOLOR);
SetMenuTextColor(items+which,0);
PrintX=item_i->x+item_i->indent;
......@@ -2988,7 +2988,7 @@ void DrawHalfStep(int x,int y)
//
void DrawGun(CP_iteminfo *item_i,CP_itemtype *items,int x,int *y,int which,int basey,void (*routine)(int w))
{
VWB_Bar(x-1,*y,25,16,BKGDCOLOR);
VW_Bar(x-1,*y,25,16,BKGDCOLOR);
*y=basey+which*13;
VWB_DrawPic(x,*y,C_CURSOR1PIC);
SetMenuTextColor(items+which,1);
......@@ -3137,7 +3137,7 @@ int Confirm(char *string)
switch(tick)
{
case 0:
VWB_Bar(x,y,8,13,TEXTCOLOR);
VW_Bar(x,y,8,13,TEXTCOLOR);
break;
case 1:
PrintX=x;
......@@ -3301,11 +3301,11 @@ void DrawMenuGun(CP_iteminfo *iteminfo)
void DrawStripes(int y)
{
#ifndef SPEAR
VWB_Bar(0,y,320,24,0);
VWB_Hlin(0,319,y+22,STRIPE);
VW_Bar(0,y,320,24,0);
VW_Hlin(0,319,y+22,STRIPE);
#else
VWB_Bar(0,y,320,22,0);
VWB_Hlin(0,319,y+23,0);
VW_Bar(0,y,320,22,0);
VW_Hlin(0,319,y+23,0);
#endif
}
......
......@@ -45,7 +45,7 @@
#define MENU_X 76
#define MENU_Y 55
#define MENU_W 178
#ifndef SPEAR
#if defined(UPLOAD) || (!defined(GOODTIMES) && !defined(SPEAR))
#define MENU_H 13*10+6
#else
#define MENU_H 13*9+6
......
......@@ -193,7 +193,7 @@ void HandleCommand (void)
picx=ParseNumber();
picwidth=ParseNumber();
picheight=ParseNumber();
VWB_Bar(picx,picy,picwidth,picheight,BACKCOLOR);
VW_Bar(picx,picy,picwidth,picheight,BACKCOLOR);
RipToEOL();
break;
case ';': // comment
......@@ -382,7 +382,7 @@ void HandleWord()
// print it
//
newpos = px+wwidth;
VWB_DrawPropString (words);
VW_DrawPropString (words);
px = newpos;
//
......@@ -418,7 +418,7 @@ void PageLayout (boolean shownumber)
//
// clear the screen
//
VWB_Bar (0,0,320,200,BACKCOLOR);
VW_Bar (0,0,320,200,BACKCOLOR);
VWB_DrawPic (0,0,H_TOPWINDOWPIC);
VWB_DrawPic (0,8,H_LEFTWINDOWPIC);
VWB_DrawPic (312,8,H_RIGHTWINDOWPIC);
......@@ -485,7 +485,7 @@ void PageLayout (boolean shownumber)
strcat (str,str2);
fontcolor = 0x4f; //12^BACKCOLOR;
VWB_DrawPropString (str);
VW_DrawPropString (str);
}
fontcolor = oldfontcolor;
......@@ -601,7 +601,7 @@ void ShowArticle(char *article)
fontnumber = 0;
/* CA_MarkGrChunk(STARTFONT); */
CA_CacheGrChunk(STARTFONT);
VWB_Bar (0,0,320,200,BACKCOLOR);
VW_Bar (0,0,320,200,BACKCOLOR);
CacheLayoutGraphics ();
newpage = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment