forked from KolibriOS/kolibrios
Mine 0.52: rolling up fix
git-svn-id: svn://kolibrios.org@2060 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9934173476
commit
e4ca2a0ae9
@ -1,5 +1,8 @@
|
||||
====Leency====
|
||||
|
||||
v0.52 (16/12/2008)
|
||||
- window rolling up fix
|
||||
|
||||
v0.51 (16/12/2008)
|
||||
- fixed one small bug with changing window mode
|
||||
|
||||
|
@ -21,13 +21,18 @@
|
||||
|
||||
void draw_window() // Ïðîöåäóðà îòðèñîâêè îêíà
|
||||
{
|
||||
sys_window_redraw(1);
|
||||
sys_get_colors(#colors, 40);
|
||||
|
||||
// WINDOW
|
||||
sys_window_redraw(1);
|
||||
EBX = xpos << 16 + xsize;
|
||||
ECX = ypos << 16 + ysize;
|
||||
sys_draw_window(EBX, ECX, 0x14CCCCCC, colors.w_grab | 0x80000000, "MineSweeper");
|
||||
sys_window_redraw(2);
|
||||
|
||||
// Leency ROLLED UP FIX
|
||||
sys_process_info(#procinfo, -1);
|
||||
IF (procinfo.ysize<70) return;
|
||||
|
||||
// <NEW GAME> BUTTON (911)
|
||||
EBX = xsize / 2 - 10;
|
||||
@ -43,8 +48,6 @@ void draw_window() //
|
||||
draw_time(); // draw timer
|
||||
draw_minesi(); // draw mines
|
||||
draw_squares(); // draw field
|
||||
|
||||
sys_window_redraw(2);
|
||||
}
|
||||
|
||||
dword num_colors[8]=
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*******************************************************************************
|
||||
|
||||
MenuetOS MineSweeper
|
||||
KolibriOS MineSweeper
|
||||
Copyright (C) 2003, 2004 Ivan Poddubny
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
@ -22,11 +22,12 @@
|
||||
//? pragma option LST // generate ASM listing file - ñîçäàòü àññåìáëåðíûé ëèñòèíã
|
||||
? warning TRUE // âêëþ÷èòü ðåæèì âûâîäà ïðåäóïðåæäåíèé
|
||||
? jumptomain NONE
|
||||
? include "kos_sys.h--" // MenuetOS system functions - ñèñòåìíûå ôóíêöèè MenuetOS
|
||||
? include "kos_sys.h--" // KolibriOS system functions - ñèñòåìíûå ôóíêöèè KolibriOS
|
||||
//? define DEBUG 1
|
||||
|
||||
? print "\nÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"
|
||||
? print "\n³ MenuetOS MineSweeper v0.4 ³"
|
||||
? print "\n³ KolibriOS MineSweeper v0.52 ³"
|
||||
? print "\n³ (C) Leency (leency@mail.ru) 2010,2011 ³"
|
||||
? print "\n³ (C) Ivan Poddubny (ivan-yar@bk.ru) 2003,2004 ³"
|
||||
? print "\nÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ\n\n"
|
||||
|
||||
@ -72,7 +73,7 @@ dword xpos = 100, // window coordinates -
|
||||
|
||||
byte stop_game = FALSE, // game stopped - ïðèçíàê êîíöà èãðû
|
||||
mouse_en = TRUE, // mouse enabled - ìûøü
|
||||
mode = 3, // ðåæèì èãðû 1-íîâè÷îê 2-ëþáèòåëü 3-ýêñïåðò (0 îñîáûé)
|
||||
mode = 2, // ðåæèì èãðû 1-íîâè÷îê 2-ëþáèòåëü 3-ýêñïåðò (0 îñîáûé)
|
||||
mouse_status,
|
||||
firstmine;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user