From e4ca2a0ae9a99640de87c55d866dac050660d57c Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 18 Aug 2011 16:37:24 +0000 Subject: [PATCH] Mine 0.52: rolling up fix git-svn-id: svn://kolibrios.org@2060 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/mine/trunk/changelog.txt | 3 +++ programs/games/mine/trunk/draw.h-- | 9 ++++++--- programs/games/mine/trunk/mine.c-- | 9 +++++---- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/programs/games/mine/trunk/changelog.txt b/programs/games/mine/trunk/changelog.txt index 0a3acaf2d8..512f9f1688 100644 --- a/programs/games/mine/trunk/changelog.txt +++ b/programs/games/mine/trunk/changelog.txt @@ -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 diff --git a/programs/games/mine/trunk/draw.h-- b/programs/games/mine/trunk/draw.h-- index 0277a70d6a..09270bccae 100644 --- a/programs/games/mine/trunk/draw.h-- +++ b/programs/games/mine/trunk/draw.h-- @@ -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; // 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]= diff --git a/programs/games/mine/trunk/mine.c-- b/programs/games/mine/trunk/mine.c-- index 2ca9c15116..038e7eac13 100644 --- a/programs/games/mine/trunk/mine.c-- +++ b/programs/games/mine/trunk/mine.c-- @@ -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;