Rev 7235 | Rev 7254 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7235 | Rev 7244 | ||
---|---|---|---|
1 | //CODED by Veliant, Leency, Nable, Pavelyakov. GNU GPL licence. |
1 | //CODED by Veliant, Leency, Nable, Pavelyakov. GNU GPL licence. |
2 | 2 | ||
3 | #ifndef INCLUDE_KOLIBRI_H |
3 | #ifndef INCLUDE_KOLIBRI_H |
4 | #define INCLUDE_KOLIBRI_H |
4 | #define INCLUDE_KOLIBRI_H |
5 | 5 | ||
6 | #pragma option OST |
6 | #pragma option OST |
7 | #pragma option ON |
7 | #pragma option ON |
8 | #pragma option cri- |
8 | #pragma option cri- |
9 | #pragma option -CPA |
9 | #pragma option -CPA |
10 | #initallvar 0 |
10 | #initallvar 0 |
11 | #jumptomain FALSE |
11 | #jumptomain FALSE |
12 | 12 | ||
13 | #startaddress 0 |
13 | #startaddress 0 |
14 | 14 | ||
15 | #code32 TRUE |
15 | #code32 TRUE |
16 | 16 | ||
17 | char os_name[8] = {'M','E','N','U','E','T','0','1'}; |
17 | char os_name[8] = {'M','E','N','U','E','T','0','1'}; |
18 | dword os_version = 0x00000001; |
18 | dword os_version = 0x00000001; |
19 | dword start_addr = #______INIT______; |
19 | dword start_addr = #______INIT______; |
20 | dword final_addr = #______STOP______+32; |
20 | dword final_addr = #______STOP______+32; |
21 | dword alloc_mem = MEMSIZE; |
21 | dword alloc_mem = MEMSIZE; |
22 | dword x86esp_reg = MEMSIZE; |
22 | dword x86esp_reg = MEMSIZE; |
23 | dword I_Param = #param; |
23 | dword I_Param = #param; |
24 | dword I_Path = #program_path; |
24 | dword I_Path = #program_path; |
25 | char param[4096]; |
25 | char param[4096]; |
26 | char program_path[4096]; |
26 | char program_path[4096]; |
27 | 27 | ||
28 | #define bool int |
28 | #define bool int |
29 | 29 | ||
30 | #define NULL 0 |
30 | #define NULL 0 |
31 | #define OLD -1 |
31 | #define OLD -1 |
32 | #define true 1 |
32 | #define true 1 |
33 | #define false 0 |
33 | #define false 0 |
34 | 34 | ||
35 | //Process Events |
35 | //Process Events |
36 | #define evReDraw 1 |
36 | #define evReDraw 1 |
37 | #define evKey 2 |
37 | #define evKey 2 |
38 | #define evButton 3 |
38 | #define evButton 3 |
39 | #define evExit 4 |
39 | #define evExit 4 |
40 | #define evDesktop 5 |
40 | #define evDesktop 5 |
41 | #define evMouse 6 |
41 | #define evMouse 6 |
42 | #define evIPC 7 |
42 | #define evIPC 7 |
43 | #define evNetwork 8 |
43 | #define evNetwork 8 |
44 | #define evDebug 9 |
44 | #define evDebug 9 |
45 | 45 | ||
46 | //Event mask bits for function 40 |
46 | //Event mask bits for function 40 |
47 | #define EVM_REDRAW 1b |
47 | #define EVM_REDRAW 1b |
48 | #define EVM_KEY 10b |
48 | #define EVM_KEY 10b |
49 | #define EVM_BUTTON 100b |
49 | #define EVM_BUTTON 100b |
50 | #define EVM_EXIT 1000b |
50 | #define EVM_EXIT 1000b |
51 | #define EVM_BACKGROUND 10000b |
51 | #define EVM_BACKGROUND 10000b |
52 | #define EVM_MOUSE 100000b |
52 | #define EVM_MOUSE 100000b |
53 | #define EVM_IPC 1000000b |
53 | #define EVM_IPC 1000000b |
54 | #define EVM_STACK 10000000b |
54 | #define EVM_STACK 10000000b |
55 | #define EVM_DEBUG 100000000b |
55 | #define EVM_DEBUG 100000000b |
56 | #define EVM_STACK2 1000000000b |
56 | #define EVM_STACK2 1000000000b |
57 | #define EVM_MOUSE_FILTER 0x80000000 |
57 | #define EVM_MOUSE_FILTER 0x80000000 |
58 | #define EVM_CURSOR_FILTER 0x40000000 |
58 | #define EVM_CURSOR_FILTER 0x40000000 |
59 | 59 | ||
60 | //Button options |
60 | //Button options |
61 | #define BT_DEL 0x80000000 |
61 | #define BT_DEL 0x80000000 |
62 | #define BT_HIDE 0x40000000 |
62 | #define BT_HIDE 0x40000000 |
63 | #define BT_NOFRAME 0x20000000 |
63 | #define BT_NOFRAME 0x20000000 |
64 | 64 | ||
65 | #define CLOSE_BTN 1 |
65 | #define CLOSE_BTN 1 |
66 | 66 | ||
67 | //------------------------------------------------------------------------- |
67 | //------------------------------------------------------------------------- |
68 | 68 | ||
69 | #include "../lib/system.h" |
69 | #include "../lib/system.h" |
70 | #include "../lib/mouse.h" |
70 | #include "../lib/mouse.h" |
71 | #include "../lib/keyboard.h" |
71 | #include "../lib/keyboard.h" |
72 | 72 | ||
73 | inline fastcall dword calc(EAX) { return EAX; } |
73 | inline fastcall dword calc(EAX) { return EAX; } |
74 | 74 | ||
75 | :struct raw_image { |
75 | :struct raw_image { |
76 | dword w, h, data; |
76 | dword w, h, data; |
77 | }; |
77 | }; |
78 | 78 | ||
79 | //------------------------------------------------------------------------------ |
79 | //------------------------------------------------------------------------------ |
80 | :dword wait_event_code; |
80 | :dword wait_event_code; |
81 | inline fastcall dword WaitEvent() |
81 | inline fastcall dword WaitEvent() |
82 | { |
82 | { |
83 | $mov eax,10 |
83 | $mov eax,10 |
84 | $int 0x40 |
84 | $int 0x40 |
85 | wait_event_code = EAX; |
85 | wait_event_code = EAX; |
86 | //if(wait_event_code==evMouse) MOUSE.get(); |
86 | //if(wait_event_code==evMouse) MOUSE.get(); |
87 | //return wait_event_code; |
87 | //return wait_event_code; |
88 | } |
88 | } |
89 | 89 | ||
90 | inline fastcall dword CheckEvent() |
90 | inline fastcall dword CheckEvent() |
91 | { |
91 | { |
92 | $mov eax,11 |
92 | $mov eax,11 |
93 | $int 0x40 |
93 | $int 0x40 |
94 | } |
94 | } |
95 | 95 | ||
96 | inline fastcall dword WaitEventTimeout(EBX) |
96 | inline fastcall dword WaitEventTimeout(EBX) |
97 | { |
97 | { |
98 | $mov eax,23 |
98 | $mov eax,23 |
99 | $int 0x40 |
99 | $int 0x40 |
100 | } |
100 | } |
101 | 101 | ||
102 | inline fastcall dword SetEventMask(EBX) |
102 | inline fastcall dword SetEventMask(EBX) |
103 | { |
103 | { |
104 | $mov eax,40 |
104 | $mov eax,40 |
105 | $int 0x40 |
105 | $int 0x40 |
106 | } |
106 | } |
107 | 107 | ||
108 | 108 | ||
109 | inline fastcall pause(EBX) |
109 | inline fastcall pause(EBX) |
110 | { |
110 | { |
111 | $mov eax, 5 |
111 | $mov eax, 5 |
112 | $int 0x40 |
112 | $int 0x40 |
113 | } |
113 | } |
114 | 114 | ||
115 | inline fastcall word GetButtonID() |
115 | inline fastcall word GetButtonID() |
116 | { |
116 | { |
117 | $mov eax,17 |
117 | $mov eax,17 |
118 | $int 0x40 |
118 | $int 0x40 |
119 | $shr eax,8 |
119 | $shr eax,8 |
120 | } |
120 | } |
121 | 121 | ||
122 | inline fastcall dword GetFreeRAM() |
122 | inline fastcall dword GetFreeRAM() |
123 | { |
123 | { |
124 | $mov eax, 18 |
124 | $mov eax, 18 |
125 | $mov ebx, 16 |
125 | $mov ebx, 16 |
126 | $int 0x40 |
126 | $int 0x40 |
127 | //return eax = free RAM in Kb |
127 | //return eax = free RAM in Kb |
128 | } |
128 | } |
129 | 129 | ||
130 | inline fastcall dword LoadDriver(ECX) //ECX - èìÿ äðàéâåðà |
130 | inline fastcall dword LoadDriver(ECX) //ECX - èìÿ äðàéâåðà |
131 | { |
131 | { |
132 | $mov eax, 68 |
132 | $mov eax, 68 |
133 | $mov ebx, 16 |
133 | $mov ebx, 16 |
134 | $int 0x40 |
134 | $int 0x40 |
135 | //return 0 - íåóäà÷à, èíà÷å eax = õýíäë äðàéâåðà |
135 | //return 0 - íåóäà÷à, èíà÷å eax = õýíäë äðàéâåðà |
136 | } |
136 | } |
137 | 137 | ||
138 | inline fastcall dword RuleDriver(ECX) //óêàçàòåëü íà óïðàâëÿþùóþ ñòðóêòóðó |
138 | inline fastcall dword RuleDriver(ECX) //óêàçàòåëü íà óïðàâëÿþùóþ ñòðóêòóðó |
139 | { |
139 | { |
140 | $mov eax, 68 |
140 | $mov eax, 68 |
141 | $mov ebx, 17 |
141 | $mov ebx, 17 |
142 | $int 0x40 |
142 | $int 0x40 |
143 | //return eax = îïðåäåëÿåòñÿ äðàéâåðîì |
143 | //return eax = îïðåäåëÿåòñÿ äðàéâåðîì |
144 | } |
144 | } |
145 | 145 | ||
146 | struct proc_info |
146 | struct proc_info |
147 | { |
147 | { |
148 | #define SelfInfo -1 |
148 | #define SelfInfo -1 |
149 | dword use_cpu; |
149 | dword use_cpu; |
150 | word pos_in_stack,num_slot,rezerv1; |
150 | word pos_in_stack,num_slot,rezerv1; |
151 | unsigned char name[11]; |
151 | unsigned char name[11]; |
152 | char rezerv2; |
152 | char rezerv2; |
153 | dword adress,use_memory,ID,left,top,width,height; |
153 | dword adress,use_memory,ID,left,top,width,height; |
154 | word status_slot,rezerv3; |
154 | word status_slot,rezerv3; |
155 | dword work_left,work_top,work_width,work_height; |
155 | dword work_left,work_top,work_width,work_height; |
156 | char status_window; |
156 | char status_window; |
157 | dword cwidth,cheight; |
157 | dword cwidth,cheight; |
158 | byte reserved[1024-71-8]; |
158 | byte reserved[1024-71-8]; |
159 | }; |
159 | }; |
160 | 160 | ||
161 | :void GetProcessInfo(dword _process_struct_pointer, _process_id) |
161 | :void GetProcessInfo(dword _process_struct_pointer, _process_id) |
162 | { |
162 | { |
163 | skin_height = GetSkinHeight(); |
163 | skin_height = GetSkinHeight(); |
164 | EAX = 9; |
164 | EAX = 9; |
165 | EBX = _process_struct_pointer; |
165 | EBX = _process_struct_pointer; |
166 | ECX = _process_id; |
166 | ECX = _process_id; |
167 | $int 0x40 |
167 | $int 0x40 |
168 | DSDWORD[EBX+71] = DSDWORD[EBX+42] - 9; //set cwidth |
168 | DSDWORD[EBX+71] = DSDWORD[EBX+42] - 9; //set cwidth |
169 | DSDWORD[EBX+75] = DSDWORD[EBX+46] - skin_height - 4; //set cheight |
169 | DSDWORD[EBX+75] = DSDWORD[EBX+46] - skin_height - 4; //set cheight |
170 | } |
170 | } |
171 | 171 | ||
172 | inline fastcall int GetPointOwner( EBX, ECX) //ebx=m.x, ecx=m.y |
172 | inline fastcall int GetPointOwner( EBX, ECX) //ebx=m.x, ecx=m.y |
173 | { |
173 | { |
174 | $mov eax,34 |
174 | $mov eax,34 |
175 | $int 0x40 |
175 | $int 0x40 |
176 | } |
176 | } |
177 | 177 | ||
178 | inline fastcall int GetProcessSlot( ECX) |
178 | inline fastcall int GetProcessSlot( ECX) |
179 | { |
179 | { |
180 | EAX = 18; |
180 | EAX = 18; |
181 | EBX = 21; |
181 | EBX = 21; |
182 | $int 0x40 |
182 | $int 0x40 |
183 | } |
183 | } |
184 | 184 | ||
185 | inline fastcall int GetActiveProcess() |
185 | inline fastcall int GetActiveProcess() |
186 | { |
186 | { |
187 | EAX = 18; |
187 | EAX = 18; |
188 | EBX = 7; |
188 | EBX = 7; |
189 | $int 0x40 |
189 | $int 0x40 |
190 | } |
190 | } |
191 | 191 | ||
192 | :int CheckActiveProcess(int Form_ID) |
192 | :int CheckActiveProcess(int Form_ID) |
193 | { |
193 | { |
194 | int id9=GetProcessSlot(Form_ID); |
194 | int id9=GetProcessSlot(Form_ID); |
195 | if (id9==GetActiveProcess()) return 1; |
195 | if (id9==GetActiveProcess()) return 1; |
196 | return 0; |
196 | return 0; |
197 | } |
197 | } |
198 | 198 | ||
199 | inline fastcall void ActivateWindow( ECX) |
199 | inline fastcall void ActivateWindow( ECX) |
200 | { |
200 | { |
201 | EAX = 18; |
201 | EAX = 18; |
202 | EBX = 3; |
202 | EBX = 3; |
203 | $int 0x40 |
203 | $int 0x40 |
204 | } |
204 | } |
205 | 205 | ||
206 | inline fastcall int MinimizeWindow() |
206 | inline fastcall int MinimizeWindow() |
207 | { |
207 | { |
208 | EAX = 18; |
208 | EAX = 18; |
209 | EBX = 10; |
209 | EBX = 10; |
210 | $int 0x40 |
210 | $int 0x40 |
211 | } |
211 | } |
212 | 212 | ||
213 | inline fastcall int CreateThread(ECX,EDX) |
213 | inline fastcall int CreateThread(ECX,EDX) |
214 | { |
214 | { |
215 | $mov eax,51 |
215 | $mov eax,51 |
216 | $mov ebx,1 |
216 | $mov ebx,1 |
217 | $int 0x40 |
217 | $int 0x40 |
218 | } |
218 | } |
219 | 219 | ||
220 | inline fastcall void SwitchToAnotherThread() |
220 | inline fastcall void SwitchToAnotherThread() |
221 | { |
221 | { |
222 | $mov eax,68 |
222 | $mov eax,68 |
223 | $mov ebx,1 |
223 | $mov ebx,1 |
224 | $int 0x40 |
224 | $int 0x40 |
225 | } |
225 | } |
226 | 226 | ||
227 | inline fastcall int SendWindowMessage( ECX, EDX) |
227 | inline fastcall int SendWindowMessage( ECX, EDX) |
228 | { |
228 | { |
229 | $mov eax, 72 |
229 | $mov eax, 72 |
230 | $mov ebx, 1 |
230 | $mov ebx, 1 |
231 | $int 0x40 |
231 | $int 0x40 |
232 | } |
232 | } |
233 | 233 | ||
234 | inline fastcall int KillProcess( ECX) |
234 | inline fastcall int KillProcess( ECX) |
235 | { |
235 | { |
236 | $mov eax,18; |
236 | $mov eax,18; |
237 | $mov ebx,18; |
237 | $mov ebx,18; |
238 | $int 0x40 |
238 | $int 0x40 |
239 | } |
239 | } |
240 | 240 | ||
241 | #define TURN_OFF 2 |
241 | #define TURN_OFF 2 |
242 | #define REBOOT 3 |
242 | #define REBOOT 3 |
243 | #define KERNEL 4 |
243 | #define KERNEL 4 |
244 | inline fastcall int ExitSystem( ECX) |
244 | inline fastcall int ExitSystem( ECX) |
245 | { |
245 | { |
246 | $mov eax, 18 |
246 | $mov eax, 18 |
247 | $mov ebx, 9 |
247 | $mov ebx, 9 |
248 | $int 0x40 |
248 | $int 0x40 |
249 | } |
249 | } |
250 | 250 | ||
251 | inline fastcall ExitProcess() |
251 | inline fastcall ExitProcess() |
252 | { |
252 | { |
253 | $mov eax,-1; |
253 | $mov eax,-1; |
254 | $int 0x40 |
254 | $int 0x40 |
255 | } |
255 | } |
256 | 256 | ||
257 | //------------------------------------------------------------------------------ |
257 | //------------------------------------------------------------------------------ |
258 | 258 | ||
259 | inline fastcall void SetCurDir( ECX) |
259 | inline fastcall void SetCurDir( ECX) |
260 | { |
260 | { |
261 | EAX=30; |
261 | EAX=30; |
262 | EBX=1; |
262 | EBX=1; |
263 | $int 0x40 |
263 | $int 0x40 |
264 | } |
264 | } |
265 | 265 | ||
266 | 266 | ||
267 | //eax = ÿçûê ñèñòåìû (1=eng, 2=fi, 3=ger, 4=rus) |
267 | //eax = ÿçûê ñèñòåìû (1=eng, 2=fi, 3=ger, 4=rus) |
268 | #define SYS_LANG_ENG 1 |
268 | #define SYS_LANG_ENG 1 |
269 | #define SYS_LANG_FIN 2 |
269 | #define SYS_LANG_FIN 2 |
270 | #define SYS_LANG_GER 3 |
270 | #define SYS_LANG_GER 3 |
271 | #define SYS_LANG_RUS 4 |
271 | #define SYS_LANG_RUS 4 |
272 | inline fastcall int GetSystemLanguage() |
272 | inline fastcall int GetSystemLanguage() |
273 | { |
273 | { |
274 | EAX = 26; |
274 | EAX = 26; |
275 | EBX = 5; |
275 | EBX = 5; |
276 | $int 0x40 |
276 | $int 0x40 |
277 | } |
277 | } |
278 | 278 | ||
279 | #define BUTTON_STYLE_FLAT 0 |
279 | #define BUTTON_STYLE_FLAT 0 |
280 | #define BUTTON_STYLE_GRADIENT 1 |
280 | #define BUTTON_STYLE_GRADIENT 1 |
281 | inline fastcall SetButtonStyle(ECX) //ECX - button style |
281 | inline fastcall SetButtonStyle(ECX) //ECX - button style |
282 | { |
282 | { |
283 | $mov eax,48 |
283 | $mov eax,48 |
284 | $mov ebx,1 |
284 | $mov ebx,1 |
285 | int 64 |
285 | int 64 |
286 | } |
286 | } |
287 | 287 | ||
288 | inline fastcall GetSkinHeight() |
288 | inline fastcall GetSkinHeight() |
289 | { |
289 | { |
290 | $push ebx |
290 | $push ebx |
291 | $mov eax,48 |
291 | $mov eax,48 |
292 | $mov ebx,4 |
292 | $mov ebx,4 |
293 | $int 0x40 |
293 | $int 0x40 |
294 | $pop ebx |
294 | $pop ebx |
295 | } |
295 | } |
296 | 296 | ||
297 | inline fastcall void SetSystemSkin( ECX) |
297 | inline fastcall void SetSystemSkin( ECX) |
298 | { |
298 | { |
299 | EAX = 48; |
299 | EAX = 48; |
300 | EBX = 8; |
300 | EBX = 8; |
301 | $int 0x40 |
301 | $int 0x40 |
302 | } |
302 | } |
303 | 303 | ||
304 | inline fastcall int GetScreenWidth() |
304 | inline fastcall int GetScreenWidth() |
305 | { |
305 | { |
306 | $mov eax, 14 |
306 | $mov eax, 14 |
307 | $int 0x40 |
307 | $int 0x40 |
308 | $shr eax, 16 |
308 | $shr eax, 16 |
309 | } |
309 | } |
310 | 310 | ||
311 | inline fastcall int GetScreenHeight() |
311 | inline fastcall int GetScreenHeight() |
312 | { |
312 | { |
313 | $mov eax, 14 |
313 | $mov eax, 14 |
314 | $int 0x40 |
314 | $int 0x40 |
315 | $and eax,0x0000FFFF |
315 | $and eax,0x0000FFFF |
316 | } |
316 | } |
317 | 317 | ||
318 | inline fastcall int GetClientTop() |
318 | inline fastcall int GetClientTop() |
319 | { |
319 | { |
320 | $mov eax, 48 |
320 | $mov eax, 48 |
321 | $mov ebx, 5 |
321 | $mov ebx, 5 |
322 | $int 0x40 |
322 | $int 0x40 |
323 | $mov eax, ebx |
323 | $mov eax, ebx |
324 | $shr eax, 16 |
324 | $shr eax, 16 |
325 | } |
325 | } |
326 | 326 | ||
327 | inline fastcall int GetClientHeight() |
327 | inline fastcall int GetClientHeight() |
328 | { |
328 | { |
329 | $mov eax, 48 |
329 | $mov eax, 48 |
330 | $mov ebx, 5 |
330 | $mov ebx, 5 |
331 | $int 0x40 |
331 | $int 0x40 |
332 | $mov eax, ebx |
332 | $mov eax, ebx |
333 | } |
333 | } |
334 | 334 | ||
335 | inline fastcall dword LoadLibrary( ECX) |
335 | inline fastcall dword LoadLibrary( ECX) |
336 | { |
336 | { |
337 | $mov eax, 68 |
337 | $mov eax, 68 |
338 | $mov ebx, 19 |
338 | $mov ebx, 19 |
339 | $int 0x40 |
339 | $int 0x40 |
340 | } |
340 | } |
341 | 341 | ||
342 | inline fastcall int TestBit( EAX, CL) |
342 | inline fastcall int TestBit( EAX, CL) |
343 | { |
343 | { |
344 | $shr eax,cl |
344 | $shr eax,cl |
345 | $and eax,1 |
345 | $and eax,1 |
346 | } |
346 | } |
347 | 347 | ||
348 | :void SetClientScreenArea(dword _left, _right, _top, _bottom) |
348 | :void SetClientScreenArea(dword _left, _right, _top, _bottom) |
349 | { |
349 | { |
350 | EAX = 48; |
350 | EAX = 48; |
351 | EBX = 6; |
351 | EBX = 6; |
352 | ECX = _left * 65536 + _right; |
352 | ECX = _left * 65536 + _right; |
353 | EDX = _top * 65536 + _bottom; |
353 | EDX = _top * 65536 + _bottom; |
354 | $int 64; |
354 | $int 64; |
355 | } |
355 | } |
356 | 356 | ||
357 | //------------------------------------------------------------------------------ |
357 | //------------------------------------------------------------------------------ |
358 | 358 | ||
359 | :void DefineAndDrawWindow(dword _x, _y, _w, _h, _window_type, _bgcolor, _title, _flags) |
359 | :void DefineAndDrawWindow(dword _x, _y, _w, _h, _window_type, _bgcolor, _title, _flags) |
360 | { |
360 | { |
361 | EAX = 12; // function 12:tell os about windowdraw |
361 | EAX = 12; // function 12:tell os about windowdraw |
362 | EBX = 1; |
362 | EBX = 1; |
363 | $int 0x40 |
363 | $int 0x40 |
364 | 364 | ||
365 | $xor EAX,EAX |
365 | $xor EAX,EAX |
366 | EBX = _x << 16 + _w; |
366 | EBX = _x << 16 + _w; |
367 | ECX = _y << 16 + _h; |
367 | ECX = _y << 16 + _h; |
368 | EDX = _window_type << 24 | _bgcolor; |
368 | EDX = _window_type << 24 | _bgcolor; |
369 | EDI = _title; |
369 | EDI = _title; |
370 | ESI = _flags; |
370 | ESI = _flags; |
371 | $int 0x40 |
371 | $int 0x40 |
372 | 372 | ||
373 | 373 | ||
374 | EAX = 12; // function 12:tell os about windowdraw |
374 | EAX = 12; // function 12:tell os about windowdraw |
375 | EBX = 2; |
375 | EBX = 2; |
376 | $int 0x40 |
376 | $int 0x40 |
377 | } |
377 | } |
378 | 378 | ||
379 | inline fastcall MoveSize( EBX,ECX,EDX,ESI) |
379 | inline fastcall MoveSize( EBX,ECX,EDX,ESI) |
380 | { |
380 | { |
381 | $mov eax, 67 |
381 | $mov eax, 67 |
382 | $int 0x40 |
382 | $int 0x40 |
383 | } |
383 | } |
384 | 384 | ||
385 | inline fastcall void DrawTitle( ECX) |
385 | inline fastcall void DrawTitle( ECX) |
386 | { |
386 | { |
387 | EAX = 71; |
387 | EAX = 71; |
388 | EBX = 1; |
388 | EBX = 1; |
389 | $int 0x40; |
389 | $int 0x40; |
390 | } |
390 | } |
391 | 391 | ||
392 | // @EDX is a process id, -1 for self |
392 | // @EDX is a process id, -1 for self |
393 | // @ESI is a new LayerBehaviour |
393 | // @ESI is a new LayerBehaviour |
394 | // @RETURN: EAX, 0 is fail, 1 is success |
394 | // @RETURN: EAX, 0 is fail, 1 is success |
395 | #define ZPOS_DESKTOP -2 |
395 | #define ZPOS_DESKTOP -2 |
396 | #define ZPOS_ALWAYS_BACK -1 |
396 | #define ZPOS_ALWAYS_BACK -1 |
397 | #define ZPOS_NORMAL 0 |
397 | #define ZPOS_NORMAL 0 |
398 | #define ZPOS_ALWAYS_TOP 1 |
398 | #define ZPOS_ALWAYS_TOP 1 |
399 | inline fastcall dword SetWindowLayerBehaviour(EDX, ESI) |
399 | inline fastcall dword SetWindowLayerBehaviour(EDX, ESI) |
400 | { |
400 | { |
401 | EAX = 18; |
401 | EAX = 18; |
402 | EBX = 25; |
402 | EBX = 25; |
403 | ECX = 2; |
403 | ECX = 2; |
404 | $int 64 |
404 | $int 64 |
405 | } |
405 | } |
406 | 406 | ||
407 | :void WriteTextB(dword x,y,byte fontType, dword color, str_offset) |
407 | :void WriteTextB(dword x,y,byte fontType, dword color, str_offset) |
408 | { |
408 | { |
409 | EAX = 4; |
409 | EAX = 4; |
410 | EBX = x<<16+y; |
410 | EBX = x<<16+y; |
411 | ECX = fontType<<24+color; |
411 | ECX = fontType<<24+color; |
412 | EDX = str_offset; |
412 | EDX = str_offset; |
413 | ESI = 0; |
413 | ESI = 0; |
414 | $int 0x40; |
414 | $int 0x40; |
415 | $add ebx, 1<<16 |
415 | $add ebx, 1<<16 |
416 | $int 0x40 |
416 | $int 0x40 |
417 | } |
417 | } |
418 | 418 | ||
419 | :void WriteText(dword x,y,byte fontType, dword color, str_offset) |
419 | :void WriteText(dword x,y,byte fontType, dword color, str_offset) |
420 | { |
420 | { |
421 | EAX = 4; |
421 | EAX = 4; |
422 | EBX = x<<16+y; |
422 | EBX = x<<16+y; |
423 | ECX = fontType<<24+color; |
423 | ECX = fontType<<24+color; |
424 | EDX = str_offset; |
424 | EDX = str_offset; |
425 | $int 0x40; |
425 | $int 0x40; |
426 | } |
426 | } |
427 | 427 | ||
428 | :dword WriteBufText(dword x,y,byte fontType, dword color, str_offset, buf_offset) |
428 | :dword WriteBufText(dword x,y,byte fontType, dword color, str_offset, buf_offset) |
429 | { |
429 | { |
430 | EAX = 4; |
430 | EAX = 4; |
431 | EBX = x<<16+y; |
431 | EBX = x<<16+y; |
432 | ECX = fontType<<24+color; |
432 | ECX = fontType<<24+color; |
433 | EDX = str_offset; |
433 | EDX = str_offset; |
434 | EDI = buf_offset; |
434 | EDI = buf_offset; |
435 | $int 0x40; |
435 | $int 0x40; |
436 | } |
436 | } |
437 | 437 | ||
438 | :void WriteNumber(dword x,y,byte fontType, dword color, count, number_or_offset) |
438 | :void WriteNumber(dword x,y,byte fontType, dword color, count, number_or_offset) |
439 | { |
439 | { |
440 | EAX = 47; |
440 | EAX = 47; |
441 | EBX = count<<16; |
441 | EBX = count<<16; |
442 | ECX = number_or_offset; |
442 | ECX = number_or_offset; |
443 | EDX = x<<16+y; |
443 | EDX = x<<16+y; |
444 | ESI = fontType<<24+color; |
444 | ESI = fontType<<24+color; |
445 | $int 0x40; |
445 | $int 0x40; |
446 | } |
446 | } |
447 | 447 | ||
448 | :void CopyScreen(dword dst_offset, x, y, w, h) |
448 | :void CopyScreen(dword dst_offset, x, y, w, h) |
449 | { |
449 | { |
450 | EAX = 36; |
450 | EAX = 36; |
451 | EBX = dst_offset; |
451 | EBX = dst_offset; |
452 | ECX = w << 16 + h; |
452 | ECX = w << 16 + h; |
453 | EDX = x << 16 + y; |
453 | EDX = x << 16 + y; |
454 | $int 0x40; |
454 | $int 0x40; |
455 | } |
455 | } |
456 | 456 | ||
457 | :dword GetPixelColorFromScreen(dword _x, _y) |
457 | :dword GetPixelColorFromScreen(dword _x, _y) |
458 | { |
458 | { |
459 | EAX = 35; |
459 | EAX = 35; |
460 | EBX = _y * screen.width + _x; |
460 | EBX = _y * screen.width + _x; |
461 | $int 64 |
461 | $int 64 |
462 | } |
462 | } |
463 | 463 | ||
464 | #define DRAW_DESKTOP_BG_TILE 1 |
464 | #define DRAW_DESKTOP_BG_TILE 1 |
465 | #define DRAW_DESKTOP_BG_STRETCH 2 |
465 | #define DRAW_DESKTOP_BG_STRETCH 2 |
466 | :void SetBackgroundImage(dword w,h, image, mode) |
466 | :void SetBackgroundImage(dword w,h, image, mode) |
467 | { |
467 | { |
468 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
468 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
469 | $mov ebx,4 // SSF_MODE_BG 4 - set drawing mode for the background |
469 | $mov ebx,4 // SSF_MODE_BG 4 - set drawing mode for the background |
470 | $mov ecx,mode // drawing mode - tile (1), stretch (2) |
470 | $mov ecx,mode // drawing mode - tile (1), stretch (2) |
471 | $int 64 |
471 | $int 64 |
472 | 472 | ||
473 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
473 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
474 | $mov ebx,1 // SSF_SIZE_BG=1 - set a size of the background image |
474 | $mov ebx,1 // SSF_SIZE_BG=1 - set a size of the background image |
475 | $mov ecx,w // width |
475 | $mov ecx,w // width |
476 | $mov edx,h // height |
476 | $mov edx,h // height |
477 | $int 64 |
477 | $int 64 |
478 | 478 | ||
479 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
479 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
480 | $mov ebx,5 // SSF_IMAGE_BG=5 - put block of pixels on the background image |
480 | $mov ebx,5 // SSF_IMAGE_BG=5 - put block of pixels on the background image |
481 | $mov ecx,image // pointer to the data in the format BBGGRRBBGGRR... |
481 | $mov ecx,image // pointer to the data in the format BBGGRRBBGGRR... |
482 | $mov edx,0 // offset in data of the background image |
482 | $mov edx,0 // offset in data of the background image |
483 | ESI = 3*w*h; // size of data in bytes = 3 * number of pixels |
483 | ESI = 3*w*h; // size of data in bytes = 3 * number of pixels |
484 | $int 64 |
484 | $int 64 |
485 | 485 | ||
486 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
486 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
487 | $mov ebx,3 // SSF_REDRAW_BG=3 - redraw background |
487 | $mov ebx,3 // SSF_REDRAW_BG=3 - redraw background |
488 | $int 64 |
488 | $int 64 |
489 | } |
489 | } |
490 | 490 | ||
491 | :void _PutImage(dword x,y, w,h, data_offset) |
491 | :void _PutImage(dword x,y, w,h, data_offset) |
492 | { |
492 | { |
493 | EAX = 7; |
493 | EAX = 7; |
494 | EBX = data_offset; |
494 | EBX = data_offset; |
495 | ECX = w<<16+h; |
495 | ECX = w<<16+h; |
496 | EDX = x<<16+y; |
496 | EDX = x<<16+y; |
497 | $int 0x40 |
497 | $int 0x40 |
498 | } |
498 | } |
499 | 499 | ||
500 | :void PutPaletteImage(dword inbuf,w,h,x,y,bits,pal) |
500 | :void PutPaletteImage(dword inbuf,w,h,x,y,bits,pal) |
501 | { |
501 | { |
502 | EAX = 65; |
502 | EAX = 65; |
503 | EBX = inbuf; |
503 | EBX = inbuf; |
504 | ECX = w<<16+h; |
504 | ECX = w<<16+h; |
505 | EDX = x<<16+y; |
505 | EDX = x<<16+y; |
506 | ESI = bits; |
506 | ESI = bits; |
507 | EDI = pal; |
507 | EDI = pal; |
508 | EBP = 0; |
508 | EBP = 0; |
509 | $int 0x40 |
509 | $int 0x40 |
510 | } |
510 | } |
511 | 511 | ||
512 | inline fastcall void PutPixel( EBX,ECX,EDX) |
512 | inline fastcall void PutPixel( EBX,ECX,EDX) |
513 | { |
513 | { |
514 | EAX=1; |
514 | EAX=1; |
515 | $int 0x40 |
515 | $int 0x40 |
516 | } |
516 | } |
517 | 517 | ||
518 | :void DrawBar(dword x,y,w,h,color) |
518 | :void DrawBar(dword x,y,w,h,color) |
519 | { |
519 | { |
520 | if (h<=0) || (h>60000) || (w<=0) || (w>60000) return; //bad boy :) |
520 | if (h<=0) || (h>60000) || (w<=0) || (w>60000) return; //bad boy :) |
521 | EAX = 13; |
521 | EAX = 13; |
522 | EBX = x<<16+w; |
522 | EBX = x<<16+w; |
523 | ECX = y<<16+h; |
523 | ECX = y<<16+h; |
524 | EDX = color; |
524 | EDX = color; |
525 | $int 0x40 |
525 | $int 0x40 |
526 | } |
526 | } |
527 | 527 | ||
528 | :void DefineButton(dword x,y,w,h,id,color) |
528 | :void DefineButton(dword x,y,w,h,id,color) |
529 | { |
529 | { |
530 | EAX = 8; |
530 | EAX = 8; |
531 | EDX = id + BT_DEL; |
531 | EDX = id + BT_DEL; |
532 | $int 0x40; |
532 | $int 0x40; |
533 | EDX = id; |
533 | EDX = id; |
534 | ESI = color; |
534 | ESI = color; |
535 | EBX = x<<16+w; |
535 | EBX = x<<16+w; |
536 | ECX = y<<16+h; |
536 | ECX = y<<16+h; |
537 | $int 0x40 |
537 | $int 0x40 |
538 | } |
538 | } |
539 | 539 | ||
540 | inline RefreshWindow(dword ID_REFRESH,ID_ACTIVE) |
540 | inline RefreshWindow(dword ID_REFRESH,ID_ACTIVE) |
541 | { |
541 | { |
542 | EAX = 18; |
542 | EAX = 18; |
543 | EBX = 22; |
543 | EBX = 22; |
544 | ECX = 3; |
544 | ECX = 3; |
545 | EDX = ID_REFRESH; |
545 | EDX = ID_REFRESH; |
546 | $int 0x40 |
546 | $int 0x40 |
547 | EAX = 18; |
547 | EAX = 18; |
548 | EBX = 3; |
548 | EBX = 3; |
549 | EDX = ID_ACTIVE; |
549 | EDX = ID_ACTIVE; |
550 | $int 0x40 |
550 | $int 0x40 |
551 | } |
551 | } |
552 | 552 | ||
553 | :void UnsafeDefineButton(dword x,y,w,h,id,color) |
553 | :void UnsafeDefineButton(dword x,y,w,h,id,color) |
554 | { |
554 | { |
555 | EAX = 8; |
555 | EAX = 8; |
556 | EBX = x<<16+w; |
556 | EBX = x<<16+w; |
557 | ECX = y<<16+h; |
557 | ECX = y<<16+h; |
558 | EDX = id; |
558 | EDX = id; |
559 | ESI = color; |
559 | ESI = color; |
560 | $int 0x40 |
560 | $int 0x40 |
561 | } |
561 | } |
562 | 562 | ||
563 | :void DefineDragableWindow(dword _x, _y, _w, _h) |
563 | :void DefineDragableWindow(dword _x, _y, _w, _h) |
564 | { |
564 | { |
565 | DefineAndDrawWindow(_x, _y, _w, _h, 0x41,0x000000,NULL,0b); |
565 | DefineAndDrawWindow(_x, _y, _w, _h, 0x41,0x000000,NULL,0b); |
566 | } |
566 | } |
567 | 567 | ||
568 | :void DefineUnDragableWindow(dword _x, _y, _w, _h) |
568 | :void DefineUnDragableWindow(dword _x, _y, _w, _h) |
569 | { |
569 | { |
570 | DefineAndDrawWindow(_x, _y, _w, _h, 0x01, 0, 0, 0x01fffFFF); |
570 | DefineAndDrawWindow(_x, _y, _w, _h, 0x01, 0, 0, 0x01fffFFF); |
571 | } |
571 | } |
572 | 572 | ||
573 | :void EventDragWindow() |
573 | :void EventDragWindow() |
574 | { |
574 | { |
575 | dword tmp_x,tmp_y; |
575 | dword tmp_x,tmp_y; |
576 | dword z1,z2; |
576 | dword z1,z2; |
577 | tmp_x = mouse.x; |
577 | tmp_x = mouse.x; |
578 | tmp_y = mouse.y; |
578 | tmp_y = mouse.y; |
579 | do { |
579 | do { |
580 | mouse.get(); |
580 | mouse.get(); |
581 | if (tmp_x!=mouse.x) || (tmp_y!=mouse.y) |
581 | if (tmp_x!=mouse.x) || (tmp_y!=mouse.y) |
582 | { |
582 | { |
583 | z1 = Form.left + mouse.x - tmp_x; |
583 | z1 = Form.left + mouse.x - tmp_x; |
584 | z2 = Form.top + mouse.y - tmp_y; |
584 | z2 = Form.top + mouse.y - tmp_y; |
585 | if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.width-Form.width-10)z1=screen.width-Form.width; |
585 | if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.width-Form.width-10)z1=screen.width-Form.width; |
586 | if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.height-Form.height-10)z2=screen.height-Form.height; |
586 | if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.height-Form.height-10)z2=screen.height-Form.height; |
587 | MoveSize(z1 , z2, OLD, OLD); |
587 | MoveSize(z1 , z2, OLD, OLD); |
588 | draw_window(); |
588 | draw_window(); |
589 | } |
589 | } |
590 | pause(1); |
590 | pause(1); |
591 | } while (mouse.lkm); |
591 | } while (mouse.lkm); |
592 | } |
592 | } |
593 | 593 | ||
594 | :void DefineHiddenButton(dword _x, _y, _w, _h, _id) |
594 | :void DefineHiddenButton(dword _x, _y, _w, _h, _id) |
595 | { |
595 | { |
596 | DefineButton(_x, _y, _w, _h, _id + BT_HIDE, 0); |
596 | DefineButton(_x, _y, _w, _h, _id + BT_HIDE, 0); |
597 | } |
597 | } |
598 | 598 | ||
599 | inline fastcall void DeleteButton( EDX) |
599 | inline fastcall void DeleteButton( EDX) |
600 | { |
600 | { |
601 | EAX = 8; |
601 | EAX = 8; |
602 | EDX += BT_DEL; |
602 | EDX += BT_DEL; |
603 | $int 0x40 |
603 | $int 0x40 |
604 | } |
604 | } |
605 | 605 | ||
606 | inline fastcall dword GetStartTime() |
606 | inline fastcall dword GetStartTime() |
607 | { |
607 | { |
608 | $mov eax,26 |
608 | $mov eax,26 |
609 | $mov ebx,9 |
609 | $mov ebx,9 |
610 | $int 0x40 |
610 | $int 0x40 |
611 | } |
611 | } |
612 | 612 | ||
613 | :dword X_EventRedrawWindow,Y_EventRedrawWindow; |
613 | :dword X_EventRedrawWindow,Y_EventRedrawWindow; |
614 | :void _EventRedrawWindow() |
614 | :void _EventRedrawWindow() |
615 | { |
615 | { |
616 | loop()switch(WaitEvent()) |
- | |
617 | { |
- | |
618 | case evReDraw: |
- | |
619 | DefineAndDrawWindow(X_EventRedrawWindow,Y_EventRedrawWindow,100,1,0x34,0xFFFFFF,NULL,0); |
616 | DefineAndDrawWindow(X_EventRedrawWindow,Y_EventRedrawWindow,1,1,0x34,0xFFFFFF,NULL,0); |
620 | pause(10); |
617 | //pause(10); |
621 | ExitProcess(); |
618 | ExitProcess(); |
622 | break; |
- | |
623 | } |
- | |
624 | } |
619 | } |
625 | :char REDRAW_BUFF_EVENT_[4096]; |
620 | :char REDRAW_BUFF_EVENT_[4096]; |
626 | :void EventRedrawWindow(dword x,y) |
621 | :void EventRedrawWindow(dword x,y) |
627 | { |
622 | { |
628 | X_EventRedrawWindow = x; |
623 | X_EventRedrawWindow = x; |
629 | Y_EventRedrawWindow = y; |
624 | Y_EventRedrawWindow = y; |
630 | CreateThread(#_EventRedrawWindow,#REDRAW_BUFF_EVENT_+4092); |
625 | CreateThread(#_EventRedrawWindow,#REDRAW_BUFF_EVENT_+4092); |
631 | } |
626 | } |
632 | 627 | ||
633 | :struct _screen |
628 | :struct _screen |
634 | { |
629 | { |
635 | dword width,height; |
630 | dword width,height; |
636 | } screen; |
631 | } screen; |
637 | 632 | ||
638 | :byte skin_height; |
633 | :byte skin_height; |
639 | 634 | ||
640 | :void DrawDate(dword x, y, color, in_date) |
635 | :void DrawDate(dword x, y, color, in_date) |
641 | { |
636 | { |
642 | EDI = in_date; |
637 | EDI = in_date; |
643 | EAX = 47; |
638 | EAX = 47; |
644 | EBX = 2<<16; |
639 | EBX = 2<<16; |
645 | EDX = x<<16+y; |
640 | EDX = x<<16+y; |
646 | ESI = 0x90<<24+color; |
641 | ESI = 0x90<<24+color; |
647 | ECX = EDI.date.day; |
642 | ECX = EDI.date.day; |
648 | $int 0x40; |
643 | $int 0x40; |
649 | EDX += 20<<16; |
644 | EDX += 20<<16; |
650 | ECX = EDI.date.month; |
645 | ECX = EDI.date.month; |
651 | $int 0x40; |
646 | $int 0x40; |
652 | EDX += 20<<16; |
647 | EDX += 20<<16; |
653 | EBX = 4<<16; |
648 | EBX = 4<<16; |
654 | ECX = EDI.date.year; |
649 | ECX = EDI.date.year; |
655 | $int 0x40; |
650 | $int 0x40; |
656 | DrawBar(x+17,y+10,2,2,color); |
651 | DrawBar(x+17,y+10,2,2,color); |
657 | DrawBar(x+37,y+10,2,2,color); |
652 | DrawBar(x+37,y+10,2,2,color); |
658 | } |
653 | } |
659 | 654 | ||
660 | :void __path_name__(dword BUF,PATH) |
655 | :void __path_name__(dword BUF,PATH) |
661 | { |
656 | { |
662 | dword beg = PATH; |
657 | dword beg = PATH; |
663 | dword pos = PATH; |
658 | dword pos = PATH; |
664 | dword sav = PATH; |
659 | dword sav = PATH; |
665 | dword i; |
660 | dword i; |
666 | while(DSBYTE[pos]) |
661 | while(DSBYTE[pos]) |
667 | { |
662 | { |
668 | if(DSBYTE[pos]=='/')sav = pos; |
663 | if(DSBYTE[pos]=='/')sav = pos; |
669 | pos++; |
664 | pos++; |
670 | } |
665 | } |
671 | i = sav-beg; |
666 | i = sav-beg; |
672 | while(i) |
667 | while(i) |
673 | { |
668 | { |
674 | DSBYTE[BUF] = DSBYTE[beg]; |
669 | DSBYTE[BUF] = DSBYTE[beg]; |
675 | beg++; |
670 | beg++; |
676 | BUF++; |
671 | BUF++; |
677 | i--; |
672 | i--; |
678 | } |
673 | } |
679 | /*while(DSBYTE[beg]) |
674 | /*while(DSBYTE[beg]) |
680 | { |
675 | { |
681 | DSBYTE[BUF1] = DSBYTE[beg]; |
676 | DSBYTE[BUF1] = DSBYTE[beg]; |
682 | beg++; |
677 | beg++; |
683 | BUF1++; |
678 | BUF1++; |
684 | }*/ |
679 | }*/ |
685 | //DSBYTE[BUF1] = 0; |
680 | //DSBYTE[BUF1] = 0; |
686 | DSBYTE[BUF] = 0; |
681 | DSBYTE[BUF] = 0; |
687 | } |
682 | } |
688 | char __BUF_DIR__[4096]; |
683 | char __BUF_DIR__[4096]; |
689 | :struct SELF |
684 | :struct SELF |
690 | { |
685 | { |
691 | dword dir; |
686 | dword dir; |
692 | dword file; |
687 | dword file; |
693 | dword path; |
688 | dword path; |
694 | } self; |
689 | } self; |
695 | 690 | ||
696 | dword __generator; // random number generator - äëÿ ãåíåðàöèè ñëó÷àéíûõ ÷èñåë |
691 | dword __generator; // random number generator - äëÿ ãåíåðàöèè ñëó÷àéíûõ ÷èñåë |
697 | 692 | ||
698 | :dword program_path_length; |
693 | :dword program_path_length; |
699 | 694 | ||
700 | //The initialization of the initial data before running |
695 | //The initialization of the initial data before running |
701 | void ______INIT______() |
696 | void ______INIT______() |
702 | { |
697 | { |
703 | //if (program_path[0]!='/') I_Path++; |
698 | //if (program_path[0]!='/') I_Path++; |
704 | 699 | ||
705 | self.dir = #__BUF_DIR__; |
700 | self.dir = #__BUF_DIR__; |
706 | self.file = 0; |
701 | self.file = 0; |
707 | self.path = I_Path; |
702 | self.path = I_Path; |
708 | __path_name__(#__BUF_DIR__,I_Path); |
703 | __path_name__(#__BUF_DIR__,I_Path); |
709 | 704 | ||
710 | skin_height = GetSkinHeight(); |
705 | skin_height = GetSkinHeight(); |
711 | screen.width = GetScreenWidth()+1; |
706 | screen.width = GetScreenWidth()+1; |
712 | screen.height = GetScreenHeight()+1; |
707 | screen.height = GetScreenHeight()+1; |
713 | 708 | ||
714 | __generator = GetStartTime(); |
709 | __generator = GetStartTime(); |
715 | 710 | ||
716 | mem_init(); |
711 | mem_init(); |
717 | 712 | ||
718 | 713 | ||
719 | main(); |
714 | main(); |
720 | ExitProcess(); |
715 | ExitProcess(); |
721 | } |
716 | } |
722 | ______STOP______: |
717 | ______STOP______: |
723 | #endif |
718 | #endif |
724 | 719 | ||
725 | #ifndef INCLUDE_MEM_H |
720 | #ifndef INCLUDE_MEM_H |
726 | #include "../lib/mem.h" |
721 | #include "../lib/mem.h" |
727 | #endif |
722 | #endif |
728 | 723 | ||
729 | #ifndef INCLUDE_DEBUG_H |
724 | #ifndef INCLUDE_DEBUG_H |
730 | #include "../lib/debug.h" |
725 | #include "../lib/debug.h" |
731 | #endif16; |
726 | #endif16; |
732 | ><16; |
727 | ><16; |
733 | >16; |
728 | >16; |
734 | ><16; |
729 | ><16; |
735 | >16; |
730 | >16; |
736 | ><16; |
731 | ><16; |
737 | >24+color; |
732 | >24+color; |
738 | ><24+color; |
733 | ><24+color; |
739 | >16+y; |
734 | >16+y; |
740 | ><16+y; |
735 | ><16+y; |
741 | >16; |
736 | >16; |
742 | ><16; |
737 | ><16; |
743 | >=10)>=10)>16+h; |
738 | >=10)>=10)>16+h; |
744 | ><16+h; |
739 | ><16+h; |
745 | >16+w; |
740 | >16+w; |
746 | ><16+w; |
741 | ><16+w; |
747 | >16+h; |
742 | >16+h; |
748 | ><16+h; |
743 | ><16+h; |
749 | >16+w; |
744 | >16+w; |
750 | ><16+w; |
745 | ><16+w; |
751 | >16+h; |
746 | >16+h; |
752 | ><16+h; |
747 | ><16+h; |
753 | >16+w; |
748 | >16+w; |
754 | ><16+w; |
749 | ><16+w; |
755 | >=0)>=0)>16+y; |
750 | >=0)>=0)>16+y; |
756 | ><16+y; |
751 | ><16+y; |
757 | >16+h; |
752 | >16+h; |
758 | ><16+h; |
753 | ><16+h; |
759 | >16+y; |
754 | >16+y; |
760 | ><16+y; |
755 | ><16+y; |
761 | >16+h; |
756 | >16+h; |
762 | ><16+h; |
757 | ><16+h; |
763 | >><>><>24+color; |
758 | >><>><>24+color; |
764 | ><24+color; |
759 | ><24+color; |
765 | >16+y; |
760 | >16+y; |
766 | ><16+y; |
761 | ><16+y; |
767 | >16; |
762 | >16; |
768 | ><16; |
763 | ><16; |
769 | >24+color; |
764 | >24+color; |
770 | ><24+color; |
765 | ><24+color; |
771 | >16+y; |
766 | >16+y; |
772 | ><16+y; |
767 | ><16+y; |
773 | >24+color; |
768 | >24+color; |
774 | ><24+color; |
769 | ><24+color; |
775 | >16+y; |
770 | >16+y; |
776 | ><16+y; |
771 | ><16+y; |
777 | >16 |
772 | >16 |
778 | ><16 |
773 | ><16 |
779 | >24+color; |
774 | >24+color; |
780 | ><24+color; |
775 | ><24+color; |
781 | >16+y; |
776 | >16+y; |
782 | ><16+y; |
777 | ><16+y; |
783 | >><>><>><> |
778 | >><>><>><> |