Commit graph

51 commits

Author SHA1 Message Date
Zhiyi Zhang
6c6cfb913b winemine: Enable visual styles.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-11 10:53:44 +02:00
Michael Stefaniuc
251d0a8a26 winemine: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-07 10:16:12 +02:00
Michael Stefaniuc
a9933cc2d1 winemine: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-13 19:10:01 +02:00
Andrey Semakin
b75b6655ef winemine: Add Reset Results button.
Signed-off-by: Andrey Semakin <and-semakin@ya.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:46 +01:00
Andrey Semakin
1392ab1112 winemine: Save board without need to correctly finish the app.
Thus player will never lose his best time even if app crashes.

Signed-off-by: Andrey Semakin <and-semakin@ya.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:46 +01:00
Andrey Semakin
dc3293612d winemine: Add WM_RBUTTONUP to cases of TestMines().
Signed-off-by: Andrey Semakin <and-semakin@ya.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:46 +01:00
Andrey Semakin
ca8f056da1 winemine: Added Shift+LClick hotkey to uncover multiple cells.
Signed-off-by: Andrey Semakin <and-semakin@ya.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 22:58:48 +01:00
Andrey Semakin
9b90266cfb winemine: Mine random placing fix.
Signed-off-by: Andrey Semakin <and-semakin@ya.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 10:24:23 +01:00
Michael Stefaniuc
925217b857 winemine: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 11:02:36 +09:00
Nikolay Sivov
136d6755de winemine: Fix loading program state from registry.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 16:43:25 +09:00
Jared Smudde
3966affe06 winemine: Load main icon in the about window. 2015-09-25 22:20:21 +02:00
Alexandre Julliard
020faceaae winemine: Convert to Unicode. 2012-01-19 21:08:55 +01:00
Dylan Smith
8a2cb8fe21 winemine: Native RegisterClassEx requires cbSize to be set. 2010-06-21 11:46:50 +02:00
Alexandre Julliard
099890106c winemine: Set the window class small icon. 2010-04-19 20:12:51 +02:00
Austin Lund
56a57f0c9e winemine: Fix WM_MOUSEMOVE for left and right mouse buttons pressed. 2009-11-30 12:47:52 +01:00
Anders Jonsson
14c68c3c28 winemine: Change max number of mines to (cols-1)*(rows-1). 2009-02-23 12:18:52 +01:00
Michael Stefaniuc
409fb90ab8 winemine: Remove superfluous pointer casts. 2009-01-19 12:46:42 +01:00
Francois Gouget
b82caec718 winemine: Make some functions static. 2009-01-06 10:09:36 +01:00
Francois Gouget
eec04aeb62 winemine: Reorder some functions to avoid forward declarations. 2008-12-31 12:28:11 +01:00
Dylan Smith
b599f89abe winemine: Increased buffer size for player names.
Player names can be 31 characters long in Windows, so winemine should
now be able to read any of the player names in the registry created from
the minesweeper in the native Windows.
2008-06-25 10:48:28 +02:00
Dylan Smith
beccf37586 winemine: The number of mines should be visible before first choice.
There were a few lines of code that I removed that explicitly kept the
number of mines and the timer unlit before the game started.  This isn't
consistent with Windows, so I don't know what the purpose was for doing
this.  In fact, it prevents the number of mines from being shown ahead
of time, which is useful information.
2008-06-25 10:48:10 +02:00
Dylan Smith
273080af7d winemine: Middle click drag should move the box highlighting.
The correct behaviour was intended, but the wrong check was made for
wParam on the WM_MOUSEMOVE event.
2008-06-25 10:47:22 +02:00
Dylan Smith
04f925e72c winemine: Set mines after first choice.
The first choice never is on a mine in Windows.  This can be tested by
making a custom game with as many mines as possible, and then playing
the start of many games, and the first choice will never be on a mine.

This is done to make the game reasonable, since after the first choice
there will at least be some information given to make the next choice.
2008-06-25 10:47:18 +02:00
Dylan Smith
df62e0277a winemine: Adding flag before the game starts shouldn't start the timer.
The game only starts when the player left clicks on a box to test it for
a mine, not when a flag is added. Manually tested against Windows XP.
2008-06-25 10:44:45 +02:00
Alexandre Julliard
f20651b1a4 winemine: Use a standard About box with the larger icon. 2008-04-01 13:19:06 +02:00
Alexandre Julliard
d0547cb631 winemine: Properly handle negative coordinates for mouse events. 2006-10-25 17:43:16 +02:00
Mike McCormack
b7049d52e5 winemine: Remove dialog.h as it's redundant. 2006-06-05 13:07:09 +02:00
Jonathan Ernst
360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Mike McCormack
a9f96938dc winmine: Use WIN32_LEAN_AND_MEAN. 2006-01-19 12:39:28 +01:00
Jacek Caban
9111d07db7 Make registry compatible with winmine. 2005-07-03 11:20:08 +00:00
Jacek Caban
d38caa48dc Added winemine debug channel. 2005-06-27 09:42:49 +00:00
Alexandre Julliard
2e4bca9db5 Added magic comments to all Wine-specific registry accesses to make
them easier to grep.
2005-06-13 18:56:00 +00:00
Mike McCormack
ae51135ed9 Fixes for -Wmissing-declarations and -Wwrite-strings warnings. 2005-06-02 15:11:32 +00:00
Pierre d'Herbemont
342da59b0c Remove stdlib.h inclusion if winsock.h is included. 2005-05-18 15:33:20 +00:00
Alexandre Julliard
e197332fa7 Removed a few more strncpy calls. 2005-04-26 14:35:53 +00:00
Peter Berg Larsen
e732fc023d Janitorial: Get rid of strncpy/strncpyW. 2005-03-28 14:17:51 +00:00
Richard Cohen
f9026f4e85 - Remove obsolete handling of WINE_STRICT/NULL_HANDLE.
- Allow more characters for Window title (for Fr locale).
- Hardcode the icon name - so that it's independent of locale.
- Shorten the text in the About box so that it doesn't wrap.
- Use HKCU instead of HKLM for saving stuff.
- Save YPos properly.
- use AdjustWindowRect instead of calculating the window size using
  GetSystemMetrics
- Cope with the user moving the window offscreen and move it back.
2004-09-22 19:13:29 +00:00
Hans Leidekker
719a789792 Fix signed/unsigned comparison warnings. 2004-09-22 02:46:38 +00:00
Jacek Caban
ecff61c8a3 - Added Polish translation.
- Moved const "Nobody" string to resources to make translation
  possible.
2004-08-06 19:00:08 +00:00
Oleg Prokhorov
dbcc37ba7d - key accelerators for "New Game" and exit
- auto flag after successful game those entries which were not flagged
  by player during the game himself
2004-03-01 23:13:30 +00:00
Joshua Thielen
5c4caa6669 Fixed incorrect labeling of question boxes.
Removed incorrect email address in copyright.
2003-11-26 03:40:01 +00:00
Pavel Roskin
e3f6ed2d68 Don't pass unused pointers to RegCreateKeyEx() - this prevents score
saving on Windows 2000.
2003-10-04 03:07:16 +00:00
Pavel Roskin
50a4503c30 Fix processing of IDCANCEL command.
Don't change settings if the user canceled the "Custom" dialog.
2003-09-29 20:13:14 +00:00
Vincent Béron
9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard
0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Alexandre Julliard
9377ea999a Pass the correct string length to RegSetValueExA. 2001-04-10 21:31:58 +00:00
Alexandre Julliard
a6697b4639 Added middle mouse button handling. 2000-11-08 05:06:58 +00:00
Dave Pickles
ca7f923270 Registry key used in LoadBoard() was not the same as the one used in
SaveBoard(). Also fixed a typo in the position saving code.
2000-04-09 18:37:50 +00:00
Joshua Thielen
0872f30af7 Added DestroyBoard function to delete bitmap handles.
Moved SelectObject outside of DrawMine.
Selected old object's back into hMemDC.
2000-04-04 18:55:55 +00:00
Peter Hunnisett
9aaf13e7e3 - Fix painting bug with middle button down when dragging mouse
- Speed up drawing and hence overall speed
- Fix compiler warnings
- Added some optional debugging information
- Added a new known bug to the list
2000-03-30 20:25:07 +00:00