hscr.h
1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*---------------------------------------------------------------------*
Copyright (C) 1998 Nintendo.
$RCSfile: hscr.h,v $
$Revision: 1.1.1.1 $
$Date: 2002/05/02 03:27:30 $
*---------------------------------------------------------------------*/
#ifndef __HSCR_H__
#define __HSCR_H__
#include "main.h"
#include "font.h"
#include "hdd.h"
#include "herr.h"
#define MES_CMD_X 30
#define MES_CMD_Y 14
#define MES_CMD_DY 18
#define MES_DATE_X 80
#define MES_DATE_Y 96
#define MES_END_X 120
#define MES_END_Y 120
#define TEST_START_LBA 1418
#define SCREEN_INIT 0
#define SCREEN_MENU 1
#define SCREEN_RESULT 2
#define SCREEN_SETRTC 3
#define SCREEN_SETMOTOR 4
#define A_BUTTON_PUSH (conts[0].nowtrg & A_BUTTON)
#define RGBA_WHITE 0xFFFFFFFF
#define RGBA_SELECTED 0x64FFDCFF
#define RGBA_UNSELECTED 0x78A082FF
#define RGBA_YELLOW 0xFFFF00FF
#define FUNC_NUM 13
extern s32 sb_clip(s32 val ,s32 from ,s32 to);
extern u8 fromBCD(u8 data);
extern u8 toBCD(u8 data);
extern void printDate(Gfx **gpp);
extern void _setString(Gfx **gpp,u8 * str,s32 x,s32 y,u32 color);
extern void _setJStr(Gfx **gpp,s32 str_no,s32 x,s32 y,u32 color);
extern void scr_result(Gfx **gpp);
extern void scr_init(Gfx **gpp);
extern void scr_menu(Gfx **gpp);
extern void scr_setrtc(Gfx **gpp);
extern void scr_setmotor(Gfx **gpp);
extern void test_64dd(Gfx **gpp);
extern void _setScreen(s32 i);
extern s32 _getCurrentScreen(void);
extern s32 _getCursor(void);
extern s32 dd_errbuf[];
extern void _printErrorNo(Gfx **gpp);
#endif /* __HSCR_H__ */