Commit Graph

36 Commits

Author SHA1 Message Date
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
Joshua Thielen a3f2380f01 Added winemine app. 2000-03-15 19:06:39 +00:00