replace leading tabs in several more files
This commit is contained in:
@@ -297,7 +297,7 @@ BIOSgetch(void)
|
||||
if ((shift & ALT) && !ch) {
|
||||
#endif
|
||||
#if 0
|
||||
pline("Scan code: %d 0x%03X", scan, scan);
|
||||
pline("Scan code: %d 0x%03X", scan, scan);
|
||||
#endif
|
||||
if (inmap(scan))
|
||||
ch = scanmap[scan - SCANLO];
|
||||
|
||||
@@ -338,8 +338,8 @@ void txt_xputc(char ch, int attr)
|
||||
switch (ch) {
|
||||
case '\n':
|
||||
#if 0
|
||||
col = 0;
|
||||
++row;
|
||||
col = 0;
|
||||
++row;
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -105,22 +105,22 @@ static int viewport_cols = 40;
|
||||
static int viewport_rows = ROWNO;
|
||||
|
||||
static const struct Pixel defpalette[] = { /* Colors for text and the position bar */
|
||||
{ 0x00, 0x00, 0x00, 0xff }, /* CLR_BLACK */
|
||||
{ 0xaa, 0x00, 0x00, 0xff }, /* CLR_RED */
|
||||
{ 0x00, 0xaa, 0x00, 0xff }, /* CLR_GREEN */
|
||||
{ 0x99, 0x40, 0x00, 0xff }, /* CLR_BROWN */
|
||||
{ 0x00, 0x00, 0xaa, 0xff }, /* CLR_BLUE */
|
||||
{ 0xaa, 0x00, 0xaa, 0xff }, /* CLR_MAGENTA */
|
||||
{ 0x00, 0xaa, 0xaa, 0xff }, /* CLR_CYAN */
|
||||
{ 0xaa, 0xaa, 0xaa, 0xff }, /* CLR_GRAY */
|
||||
{ 0x55, 0x55, 0x55, 0xff }, /* NO_COLOR */
|
||||
{ 0xff, 0x90, 0x00, 0xff }, /* CLR_ORANGE */
|
||||
{ 0x00, 0xff, 0x00, 0xff }, /* CLR_BRIGHT_GREEN */
|
||||
{ 0xff, 0xff, 0x00, 0xff }, /* CLR_YELLOW */
|
||||
{ 0x00, 0x00, 0xff, 0xff }, /* CLR_BRIGHT_BLUE */
|
||||
{ 0xff, 0x00, 0xff, 0xff }, /* CLR_BRIGHT_MAGENTA */
|
||||
{ 0x00, 0xff, 0xff, 0xff }, /* CLR_BRIGHT_CYAN */
|
||||
{ 0xff, 0xff, 0xff, 0xff } /* CLR_WHITE */
|
||||
{ 0x00, 0x00, 0x00, 0xff }, /* CLR_BLACK */
|
||||
{ 0xaa, 0x00, 0x00, 0xff }, /* CLR_RED */
|
||||
{ 0x00, 0xaa, 0x00, 0xff }, /* CLR_GREEN */
|
||||
{ 0x99, 0x40, 0x00, 0xff }, /* CLR_BROWN */
|
||||
{ 0x00, 0x00, 0xaa, 0xff }, /* CLR_BLUE */
|
||||
{ 0xaa, 0x00, 0xaa, 0xff }, /* CLR_MAGENTA */
|
||||
{ 0x00, 0xaa, 0xaa, 0xff }, /* CLR_CYAN */
|
||||
{ 0xaa, 0xaa, 0xaa, 0xff }, /* CLR_GRAY */
|
||||
{ 0x55, 0x55, 0x55, 0xff }, /* NO_COLOR */
|
||||
{ 0xff, 0x90, 0x00, 0xff }, /* CLR_ORANGE */
|
||||
{ 0x00, 0xff, 0x00, 0xff }, /* CLR_BRIGHT_GREEN */
|
||||
{ 0xff, 0xff, 0x00, 0xff }, /* CLR_YELLOW */
|
||||
{ 0x00, 0x00, 0xff, 0xff }, /* CLR_BRIGHT_BLUE */
|
||||
{ 0xff, 0x00, 0xff, 0xff }, /* CLR_BRIGHT_MAGENTA */
|
||||
{ 0x00, 0xff, 0xff, 0xff }, /* CLR_BRIGHT_CYAN */
|
||||
{ 0xff, 0xff, 0xff, 0xff } /* CLR_WHITE */
|
||||
};
|
||||
|
||||
/* Information about the selected VESA mode */
|
||||
|
||||
@@ -181,23 +181,23 @@ static int viewport_size = 40;
|
||||
/* static char bittable[8]= {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80}; */
|
||||
#if 0
|
||||
static char defpalette[] = { /* Default VGA palette */
|
||||
0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xaa,
|
||||
0x00, 0xaa, 0x00,
|
||||
0x00, 0xaa, 0xaa,
|
||||
0xaa, 0x00, 0x00,
|
||||
0xaa, 0x00, 0xaa,
|
||||
0xaa, 0xaa, 0x00,
|
||||
0xaa, 0xaa, 0xaa,
|
||||
0x55, 0x55, 0x55,
|
||||
0xcc, 0xcc, 0xcc,
|
||||
0x00, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00,
|
||||
0xff, 0x00, 0x00,
|
||||
0xff, 0xff, 0x00,
|
||||
0xff, 0x00, 0xff,
|
||||
0xff, 0xff, 0xff
|
||||
};
|
||||
0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xaa,
|
||||
0x00, 0xaa, 0x00,
|
||||
0x00, 0xaa, 0xaa,
|
||||
0xaa, 0x00, 0x00,
|
||||
0xaa, 0x00, 0xaa,
|
||||
0xaa, 0xaa, 0x00,
|
||||
0xaa, 0xaa, 0xaa,
|
||||
0x55, 0x55, 0x55,
|
||||
0xcc, 0xcc, 0xcc,
|
||||
0x00, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00,
|
||||
0xff, 0x00, 0x00,
|
||||
0xff, 0xff, 0x00,
|
||||
0xff, 0x00, 0xff,
|
||||
0xff, 0xff, 0xff
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef ALTERNATE_VIDEO_METHOD
|
||||
@@ -843,13 +843,13 @@ vga_Finish(void)
|
||||
static void
|
||||
vga_NoBorder(int bc)
|
||||
{
|
||||
union REGS regs;
|
||||
union REGS regs;
|
||||
|
||||
regs.h.ah = (char)0x10;
|
||||
regs.h.al = (char)0x01;
|
||||
regs.h.bh = (char)bc;
|
||||
regs.h.bl = 0;
|
||||
(void) int86(VIDEO_BIOS, ®s, ®s);
|
||||
regs.h.ah = (char)0x10;
|
||||
regs.h.al = (char)0x01;
|
||||
regs.h.bh = (char)bc;
|
||||
regs.h.bl = 0;
|
||||
(void) int86(VIDEO_BIOS, ®s, ®s);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -40,31 +40,31 @@ uptodate(int fd)
|
||||
{
|
||||
#ifdef WANT_GETHDATE
|
||||
if(fstat(fd, &buf)) {
|
||||
pline("Cannot get status of saved level? ");
|
||||
return(0);
|
||||
pline("Cannot get status of saved level? ");
|
||||
return(0);
|
||||
}
|
||||
if(buf.st_mtime < hbuf.st_mtime) {
|
||||
pline("Saved level is out of date. ");
|
||||
return(0);
|
||||
pline("Saved level is out of date. ");
|
||||
return(0);
|
||||
}
|
||||
#else
|
||||
#if (defined(MICRO)) && !defined(NO_FSTAT)
|
||||
if(fstat(fd, &buf)) {
|
||||
if(g.moves > 1) pline("Cannot get status of saved level? ");
|
||||
else pline("Cannot get status of saved game.");
|
||||
return(0);
|
||||
if(g.moves > 1) pline("Cannot get status of saved level? ");
|
||||
else pline("Cannot get status of saved game.");
|
||||
return(0);
|
||||
}
|
||||
if(comp_times(buf.st_mtime)) {
|
||||
if(g.moves > 1) pline("Saved level is out of date.");
|
||||
else pline("Saved game is out of date. ");
|
||||
/* This problem occurs enough times we need to give the player
|
||||
* some more information about what causes it, and how to fix.
|
||||
*/
|
||||
if(g.moves > 1) pline("Saved level is out of date.");
|
||||
else pline("Saved game is out of date. ");
|
||||
/* This problem occurs enough times we need to give the player
|
||||
* some more information about what causes it, and how to fix.
|
||||
*/
|
||||
#ifdef MSDOS
|
||||
pline("Make sure that your system's date and time are correct.");
|
||||
pline("They must be more current than NetHack.EXE's date/time stamp.");
|
||||
pline("Make sure that your system's date and time are correct.");
|
||||
pline("They must be more current than NetHack.EXE's date/time stamp.");
|
||||
#endif /* MSDOS */
|
||||
return(0);
|
||||
return(0);
|
||||
}
|
||||
#endif /* MICRO */
|
||||
#endif /* WANT_GETHDATE */
|
||||
|
||||
@@ -3033,8 +3033,8 @@ default_checkinput(
|
||||
& RIGHTBUTTON)
|
||||
*mod = CLICK_2;
|
||||
#if 0 /* middle button */
|
||||
else if (ir->Event.MouseEvent.dwButtonState & MIDBUTTON)
|
||||
*mod = CLICK_3;
|
||||
else if (ir->Event.MouseEvent.dwButtonState & MIDBUTTON)
|
||||
*mod = CLICK_3;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
@@ -3501,18 +3501,18 @@ ray_checkinput(
|
||||
& RIGHTBUTTON)
|
||||
*mod = CLICK_2;
|
||||
#if 0 /* middle button */
|
||||
else if (ir->Event.MouseEvent.dwButtonState & MIDBUTTON)
|
||||
*mod = CLICK_3;
|
||||
else if (ir->Event.MouseEvent.dwButtonState & MIDBUTTON)
|
||||
*mod = CLICK_3;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
/* We ignore these types of console events */
|
||||
else if (ir->EventType == FOCUS_EVENT) {
|
||||
}
|
||||
else if (ir->EventType == MENU_EVENT) {
|
||||
}
|
||||
/* We ignore these types of console events */
|
||||
else if (ir->EventType == FOCUS_EVENT) {
|
||||
}
|
||||
else if (ir->EventType == MENU_EVENT) {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
} else
|
||||
@@ -3808,8 +3808,8 @@ nh340_checkinput(
|
||||
& RIGHTBUTTON)
|
||||
*mod = CLICK_2;
|
||||
#if 0 /* middle button */
|
||||
else if (ir->Event.MouseEvent.dwButtonState & MIDBUTTON)
|
||||
*mod = CLICK_3;
|
||||
else if (ir->Event.MouseEvent.dwButtonState & MIDBUTTON)
|
||||
*mod = CLICK_3;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -642,7 +642,7 @@ attempt_restore:
|
||||
if (g.program_state.in_self_recover) {
|
||||
g.program_state.in_self_recover = FALSE;
|
||||
set_savefile_name(TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!resuming) {
|
||||
|
||||
@@ -490,8 +490,8 @@ getreturn(const char *str)
|
||||
initializing the window port */
|
||||
void nethack_enter_windows(void)
|
||||
{
|
||||
if (WINDOWPORT("tty"))
|
||||
nethack_enter_consoletty();
|
||||
if (WINDOWPORT("tty"))
|
||||
nethack_enter_consoletty();
|
||||
}
|
||||
|
||||
/* CP437 to Unicode mapping according to the Unicode Consortium */
|
||||
|
||||
Reference in New Issue
Block a user