Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6024 → Rev 6166

/programs/games/mine/trunk/uf.h--
File deleted
\ No newline at end of file
/programs/games/mine/trunk/draw.h--
27,7 → 27,7
sys_window_redraw(1);
EBX = xpos << 16 + xsize;
ECX = ypos << 16 + ysize;
sys_draw_window(EBX, ECX, 0x14CCCCCC, colors.w_grab | 0x80000000, "MineSweeper");
sys_draw_window(EBX, ECX, 0x14CCCCCC, colors.w_work | 0x80000000, "MineSweeper");
sys_window_redraw(2);
// Leency ROLLED UP FIX
135,7 → 135,7
// Òàéìåð
void draw_time()
{
sys_draw_bar(XST<<16+25, 31<<16+10, 0xCCCCCC);
sys_draw_bar(XST<<16+25, 31<<16+14, 0xCCCCCC);
sys_write_number(0x00030000, time, XST<<16+32, 0x10ff0000);
}
 
146,7 → 146,7
EBX = xsize - XST - 25;
$PUSH EBX
EBX = EBX << 16 + 25;
sys_draw_bar(EBX, 31<<16+10, 0xCCCCCC);
sys_draw_bar(EBX, 31<<16+14, 0xCCCCCC);
$POP EDX
EDX <<= 16; EDX += 32;
sys_write_number(0x00030000, cmines, EDX, 0x10ff0000);
/programs/games/mine/trunk/kos_sys.h--
65,11 → 65,11
 
struct SystemColours
{
dword w_frames,
w_grab,
w_grab_button,
w_grab_button_text,
w_grab_text,
dword nonset1,
nonset2,
work_3d_dark,
work_3d_light,
w_title,
w_work,
w_work_button,
w_work_button_text,
/programs/games/mine/trunk/mine.c--
102,7 → 102,6
# include "draw.h--" // drawing functions
# include "access.h--" // get & set functions
# include "random.h--" // random number generator
//? include "uf.h--" // user field window
 
 
void init()
/programs/games/tetris/trunk/tetris.asm
26,7 → 26,6
; 31.10.2001 - rdtsc replaced - quickcode <quickcode@mail.ru>
; 28.06.2001 - fasm port & framed blocks - Ville Turjanmaa
;
;
 
LEN_X equ 19 ;width of table
LEN_Y equ 29 ; height of table
254,43 → 253,23
; *********************************************
draw_window:
 
 
mov eax,48
mov ebx,3
mov ecx,sc
mov edx,sizeof.system_colors
int 0x40
 
mov eax,12 ; function 12:tell os about windowdraw
mov ebx,1 ; 1, start of draw
int 0x40
 
mcall 48,3,sc,sizeof.system_colors
mcall 12,1
; DRAW WINDOW
xor eax,eax ; function 0 : define and draw window
mov ebx,320*65536+(LEN_X-BORDER_LEFT-BORDER_RIGHT)*ADOBE_SIZE+X_LOCATION*2
mov ecx,25*65536+ (LEN_Y-BORDER_TOP-BORDER_BOTTOM)*ADOBE_SIZE+Y_LOCATION+30
mov ecx,25*65536+ (LEN_Y-BORDER_TOP-BORDER_BOTTOM)*ADOBE_SIZE+Y_LOCATION+36
mov edx,[sc.work] ; color of work area RRGGBB
or edx,0x13000000
mov edi,title ; WINDOW LABEL
int 0x40
 
mcall 8, 30*65536+100,378*65536+22,2,[sc.work_button] ;new game
mcall ,132*65536+102, ,3 ;Wildwest's 'Pause' button
;///////////////////////////////////////////////
mov eax,8
mov ebx,30*65536+100
mov ecx,378*65536+18
mov edx,2
mov esi,[sc.work_button]
int 0x40
;/////////////////////////////////////////////// Wildwest's 'Pause' button
;mov eax,8
mov ebx,132*65536+102
mov ecx,378*65536+18
mov edx,3
mov esi,[sc.work_button];
int 0x40
 
mov eax,4 ; function 4 : write text to window
mov ebx,164*65536+384 ; [x start] *65536 + [y start]
mov ebx,164*65536+383 ; [x start] *65536 + [y start]
mov ecx,[sc.work_button_text] ; color of text RRGGBB
or ecx,0x90000000
mov edx,labe ; pointer to text
297,7 → 276,7
int 0x40
;///////////////////////////////////////////////
;mov eax,4
mov ebx,49*65536+384
mov ebx,49*65536+383
mov edx,game_finished
int 0x40
call draw_table
306,7 → 285,7
call draw_block
 
cld
mov ebx,38*65536+35 ; draw info text with function 4
mov ebx,38*65536+32 ; draw info text with function 4
mov ecx,[sc.work_text] ; color
or ecx,0x90000000
mov edx,text
658,7 → 637,7
mov eax,[score]
call number_to_str
 
mov ebx,90*65536+35 ; draw info text with function 4
mov ebx,90*65536+32 ; draw info text with function 4
mov ecx,[sc.work_text] ; color
or ecx,0x50000000
mov edx,number_str
841,7 → 820,7
 
if lang eq ru
 
title db '’…’ˆ‘ 1.61 - ‘’…‹Šˆ ˆ Ž…‹',0
title db '’¥âà¨á 1.62',0
labe db '€“‡€',0
text db 'Žçª¨:',0
game_finished: db ' Ž‚€Ÿ',0
848,7 → 827,7
 
else if lang eq et
 
title db 'TETRIS 1.61 - NOOLED & TÜHIK',0
title db 'Tetris 1.62',0
labe db 'PAUS',0
text db 'Tulemus:',0
game_finished: db 'UUS MÄNG',0
855,7 → 834,7
 
else
 
title db 'TETRIS 1.61 - ARROWS & SPACE',0
title db 'Tetris 1.62',0
labe db 'PAUSE',0
text db 'Score:',0
game_finished: db 'NEW GAME',0