Go to the source code of this file.
Defines | |
#define | FI_GIF 0 |
#define | FI_TGA 1 |
#define | FI_DIB 3 |
#define | FI_TIF 4 |
#define | FI_JPG 5 |
#define | FI_PNG 6 |
#define | PALVERSION 0x300 |
#define | MAXPALETTE 256 |
#define | MAXTEXT 256 |
#define | BOUND(x, min, max) ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x))) |
#define | SWAP(x, y) ((x)^=(y)^=(x)^=(y)) |
#define | MIN(x, y) (((x) <= (y)) : x ? y) |
#define | StartWait() hcurSave = SetCursor(LoadCursor(NULL,IDC_WAIT)) |
#define | EndWait() SetCursor(hcurSave) |
#define | ISDIB(bft) ((bft) == BFT_BITMAP) |
#define | ALIGNULONG(i) ((i+3)/4*4) |
#define | WIDTHBYTES(i) ((i+31)/32*4) |
#define | DibNumColors(bmih) |
Functions | |
short | read_gif_image (char *, short) |
BOOL CALLBACK | AboutDlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) |
LRESULT CALLBACK | MainWndProc (HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) |
BOOL | MenuCommand (HWND hWnd, WORD id, LONG lparam) |
char * | R_GetEnv (char const *aa) |
int | Viewer (HINSTANCE hInstance) |
int APIENTRY | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) |
Variables | |
INT | __argc |
CHAR ** | __argv |
unsigned char | p_red [] |
unsigned char | p_green [] |
unsigned char | p_blue [] |
int | colourmap_size |
int | x_size |
int | y_size |
int | gif_iLace |
HWND | hWndApp = NULL |
HINSTANCE | hInst = NULL |
HPALETTE | hpalCurrent = NULL |
HBITMAP | hbmCurrent = NULL |
RGBQUAD * | pRgb = NULL |
LPSTR | lpBitmapHeader = NULL |
LPSTR | lpBitmapBits = NULL |
char | IniFilename [256] |
char | IniSection [] = "VIEWER" |
#define FI_TIF 4 |
#define FI_JPG 5 |
#define FI_PNG 6 |
#define StartWait | ( | ) | hcurSave = SetCursor(LoadCursor(NULL,IDC_WAIT)) |
#define DibNumColors | ( | bmih | ) |
short read_gif_image | ( | char * | , | |
short | ||||
) |
LRESULT CALLBACK MainWndProc | ( | HWND | hWnd, | |
UINT | iMessage, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
Definition at line 165 of file VIEWER.C.
References BOUND, FALSE, hpalCurrent, IDM_HIDE, L, MenuCommand(), and TRUE.
Referenced by Viewer().
Definition at line 303 of file VIEWER.C.
References ABOUT_VERSION, EndWait, FALSE, FI_DIB, FI_GIF, FI_JPG, FI_PNG, FI_TGA, FI_TIF, FileInPath(), hInst, IDM_ABOUT, IDM_COLOURS, IDM_DISPLAY, IDM_DRAWIT, IDM_EXIT, IDM_HIDE, IDM_OPEN, IDM_SHOWLAST, IDM_SHOWMAP, IDS_1024, IDS_640, IDS_800, IDS_COLOUR, IDS_COLOUR16, IDS_COLOUR16M, IDS_COLOUR256, IDS_COLOUR65, IDS_CUSTOM, IDS_CUSTOMC, IDS_DISPLAY, IniFilename, IniSection, MAXTEXT, StartWait, and TRUE.
Referenced by MainWndProc().
int Viewer | ( | HINSTANCE | hInstance | ) |
Definition at line 115 of file VIEWER.C.
References FALSE, hInst, hWndApp, MainWndProc(), and szViewClass.
Referenced by _GetPresetMapImage(), _PaintMap(), _TraceOutline(), _Xmodeler(), and WinMain().
int APIENTRY WinMain | ( | HINSTANCE | hInstance, | |
HINSTANCE | hPrevInstance, | |||
LPSTR | lpCmdLine, | |||
int | nCmdShow | |||
) |
Definition at line 766 of file VIEWER.C.
References FALSE, FileInPath(), IniFilename, R_GetEnv(), szViewClass, TempPath, and Viewer().
CHAR** __argv |
int colourmap_size |
HPALETTE hpalCurrent = NULL |
HBITMAP hbmCurrent = NULL |
LPSTR lpBitmapHeader = NULL |
LPSTR lpBitmapBits = NULL |
char IniFilename[256] |
char IniSection[] = "VIEWER" |