Subversion Repositories Kolibri OS

Rev

Rev 8954 | Rev 9602 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8954 Rev 9439
Line 8... Line 8...
8
#define ENTRY_POINT #main
8
#define ENTRY_POINT #main
Line 9... Line 9...
9
 
9
 
10
#include "..\lib\gui.h"
10
#include "..\lib\gui.h"
Line 11... Line -...
11
#include "..\lib\random.h"
-
 
12
 
-
 
13
#include "..\lib\obj\libimg.h"
11
#include "..\lib\random.h"
14
 
12
 
15
#define BTN_CLOSED 0
13
#define BTN_CLOSED 0
Line 16... Line 14...
16
#define BTN_PRESSED 1
14
#define BTN_PRESSED 1
Line 38... Line 36...
38
int count;
36
int count;
Line 39... Line 37...
39
 
37
 
40
void main()
38
void main()
41
{   
39
{   
42
	dword id;
-
 
Line -... Line 40...
-
 
40
	dword id;
43
	load_dll(libimg, #libimg_init,1);
41
 
Line 44... Line 42...
44
 
42
	mem_init();
45
	NewGame();
43
	NewGame();
46
 
44
 
Line 149... Line 147...
149
			DrawBar(xx + 3, yy + 3, CELL_SIZE-5, CELL_SIZE-5, 0xFFFfff);//background
147
			DrawBar(xx + 3, yy + 3, CELL_SIZE-5, CELL_SIZE-5, 0xFFFfff);//background
150
			BREAK;
148
			BREAK;
151
		case BTN_OPEN:
149
		case BTN_OPEN:
152
			DrawBar(xx+1, yy+1, CELL_SIZE-1, CELL_SIZE-1, 0xFFFfff);//background
150
			DrawBar(xx+1, yy+1, CELL_SIZE-1, CELL_SIZE-1, 0xFFFfff);//background
153
	}
151
	}
154
	DrawIcon32(xx+6, yy+6, 0xFFFfff, bitpict[id]+51); //skip first 51 icons as they are boring for game
152
	draw_icon_32(xx+6, yy+6, 0xffFFFfff, bitpict[id]+51); //skip first 51 icons as they are boring for game
155
}
153
}
Line 156... Line 154...
156
 
154
 
157
void Draw_Panel()
155
void Draw_Panel()
158
{
156
{