Michael R Sweet
c97fcd9c65
Fl_Clock_Output depended on a time value that was the same as an
...
unsigned long, which is incorrect for WIN64 and VC++ 2005 (STR
#1079 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 00:34:34 +00:00
Matthias Melcher
4c338a533f
STR #1106 : fixed documentation error
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-13 00:21:06 +00:00
Matthias Melcher
fde536626e
STR #1102 : Typo
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-12 23:28:12 +00:00
Matthias Melcher
af80bcf1a4
STR #1109 : Klickin on an inactive item would keep the menubar from realizing the end of the pulldown phase and swallow the next click.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-12 23:22:55 +00:00
Michael R Sweet
b398e8422b
Fix "restart game" - we aren't saving the seed, and even so we don't get
...
the same sequence on Linux anyways.
Also, multiple clicks in a cell sets/increments the value.
Finally, use alternate background color to produce checkerboard-like
pattern.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-12 04:23:05 +00:00
Michael R Sweet
5f83ff12e6
Add VC++.NET project and dependencies for Sudoku
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-11 14:54:01 +00:00
Matthias Melcher
f3e2e5ed2d
Added Multimedia library to Sudoku for VisualC6
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-11 00:22:00 +00:00
Matthias Melcher
861944d1cb
Removed the "-g" compile option for the optimized version of FLTK. This was probably a leftover from someone debugging the optimized version (and I am too lazy and polit to run "svn blame", especially since that someone could have been myself ;-)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-10 10:23:44 +00:00
Michael R Sweet
0ce3c4c6f1
Add WIN32 audio support, and protect against accidental restarts
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-09 18:31:34 +00:00
Michael R Sweet
a6e6888a2d
Add OSX audio support to Sudoku (THANK YOU IAN!)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-08 03:51:21 +00:00
Michael R Sweet
6936751308
Don't use readlink, it is non-standard.
...
Sorry, no symlink support for fltk-config, you'll need to use wrapper
scripts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-07 20:13:12 +00:00
Michael R Sweet
bed8043ef2
Add sound design notes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-06 18:59:21 +00:00
Michael R Sweet
887698cb85
Use <FL/math.h> since Windows doesn't define M_PI.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-06 04:35:04 +00:00
Michael R Sweet
9a52731601
More sound effects, drop solution dialog (green tiles mean solved...)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-06 03:55:45 +00:00
Michael R Sweet
11349b0c63
Ignore keypresses with FL_CTRL modifier so that menubar can process them.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-05 02:14:25 +00:00
Michael R Sweet
2f40b8b80b
Start adding support for sound in Sudoku via ALSA.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-05 00:55:01 +00:00
Michael R Sweet
29a41762fb
When checking a solution, ignore readonly cells and set color of correct
...
cells.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-04 01:43:22 +00:00
Michael R Sweet
0bacb8e624
Separate WIN32 and normal build rules so we can create a resource object
...
file to link into the executable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-04 00:32:31 +00:00
Michael R Sweet
0c91e35748
Add "restart game" item and save random number seed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 14:57:39 +00:00
Michael R Sweet
fc81090d3e
Fix help (no more subgrid highlighting)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 02:25:10 +00:00
Michael R Sweet
3a7fac2981
Use CAPS LOCK as shift lock.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 02:19:58 +00:00
Michael R Sweet
912f6acf1f
Allow multiple solutions to solve the puzzle.
...
Don't show solved grids - not compatible with new code anyways, and made
the game too easy.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 01:34:25 +00:00
Matthias Melcher
0992f4ef15
STR #1095 : Drag'n'drop on WIN32 was only possible using the left mouse button. Added support for the middle and right button.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-01 09:02:13 +00:00
Matthias Melcher
cb19f58484
Added multi screen awareness to WIN32 version of Fl_Window::fullscreen()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-01 08:56:24 +00:00
Matthias Melcher
8a029d8f8d
Added Sudoku test program to the VisualC 6 IDE files
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-01 08:48:49 +00:00
Matthias Melcher
fbeb36f2c9
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4674 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-01 08:48:20 +00:00
Michael R Sweet
528ba0a584
Add missing icon for sudoku
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 22:03:39 +00:00
Michael R Sweet
346954e178
Fix mouse wheel handling on OSX (this works with MightyMouse on OSX 10.4.3
...
using the standard mouse wheel event...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 18:06:46 +00:00
Michael R Sweet
fc54087151
Update help and add support for keypad numbers.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 09:49:02 +00:00
Michael R Sweet
312aa3a3c0
Fix compile error with Sun C++ compiler.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 08:49:56 +00:00
Matthias Melcher
c146000f27
STR #1064 : Added code to underline spaces in underline chunks. Also fixed wrong character code for Center Dot (bulets) on Mac OS Quartz
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 16:39:57 +00:00
Matthias Melcher
3cae272e1f
Even better fullscreen code on OS X that resize a window to fit a single screen in multi screen setups. It still will not position over the main menu bar.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 15:54:48 +00:00
Matthias Melcher
8cd25c4ecb
STR #1082 : Made sur that "fullscreen" on Mac does not cover the top menu bar. If you still must do that, you can use the screen interface to get the true screen size of the main screen and resize the window accordingly.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 15:41:39 +00:00
Matthias Melcher
1370a6b268
STR #1082 : mad the "fullscreen" demo add and remove the window decoration by using the hide/show combo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 15:35:18 +00:00
Matthias Melcher
687f0693af
STR ##1081, 1083, 1084: in a previous change that improved timer behaviour, the idle management was accidentaly removed from the code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 15:13:10 +00:00
Matthias Melcher
b317b6dbb0
STR #1075 : After all windows in an application were hidden by the Command-H shortcut, FLTK would not be notified about the Command key beeing released. To fix this , I update the mofier keys when a window is shown again. There may be better ways to do this, but it seems to be working reliably for the apps I tested.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 14:38:38 +00:00
Matthias Melcher
129c8e39ec
STR #1098 : fl_measure now round fractional sizes up instead of down, so that an area that is create with the values returned from fl_measure will be large enough to hold the same text generated with fl_draw.
...
Or in short: OS X Tooltips will not wrap... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 09:52:19 +00:00
Michael R Sweet
5c613e487e
Fix uninitialized variable warnings.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 15:11:33 +00:00
Michael R Sweet
f3182417c0
Update dependencies.
...
Eliminate compiler warnings in Fl_GIF_Image.cxx.
Add X11 icon code to sudoku example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 15:05:50 +00:00
Michael R Sweet
e321cb37bf
VC++ 2005 Support, drop old files, add icons for Sudoku
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 14:45:48 +00:00
Michael R Sweet
f9f2de3572
Fix a resize issue with X11.
...
Add missing Id keywords to input_choice.
Add sudoku to demo program.
Add on-line help to sudoku game, and put all of the cells in the main
window so that the keyboard navigation is sane.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 05:15:47 +00:00
Michael R Sweet
0ca7b126e7
More improvements to game board generator.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 01:56:57 +00:00
Michael R Sweet
fd9a51e43b
Fix up new game code to expose at least one of every number in each axis
...
so puzzles are solvable with a unique solution.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 14:25:01 +00:00
Michael R Sweet
4a12c536fd
Better game generation, fix test slot usage.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 06:23:13 +00:00
Michael R Sweet
65727ba06b
Support up to 8 test slots and check for solution after every change
...
in a cell.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 02:17:04 +00:00
Michael R Sweet
ae6ea393c0
Mousewheel fixes.
...
src/Fl_mac.cxx:
- Disable MightyMouse code for the moment - it is crashing on
my PowerBook...
src/Fl_Scrollbar.cxx:
- Fl_Scrollbar::handle() should only return 1 for mousewheel
events that it uses.
test/sudoku.cxx:
- More tweaking.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 00:47:45 +00:00
Michael R Sweet
f2019a54cb
Add "test" numbers in the corners and add more levels of difficulty.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 22:43:33 +00:00
Michael R Sweet
9e8a88e66c
Fix mousewheel handler bug (using wrong variable in initial check)
...
Add sudoku game app (fun for the holidays! :)
Use "-Os -g" as the default optimization settings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 20:40:16 +00:00
Michael R Sweet
fe286dfe7b
OSX fixes...
...
src/Fl.cxx:
- Don't compile in static functions that aren't used.
src/Fl_mac.cxx:
- Coding style...
src/Fl_Sys_Menu_Bar.cxx:
- Fix FL_META handling - FL_META incorrectly set the CTRL modifier,
and it was not possible to get all combos of modifiers. The new
coding should work properly for all combos...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 14:50:22 +00:00
Matthias Melcher
2a4b713497
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-18 10:08:13 +00:00