Commit Graph

325 Commits

Author SHA1 Message Date
Matthias Melcher
f5a571fc83 Fixed "Pixmap" demo to not pop up a dialog if an image (or other file or even directory) is not readable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4735 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-02 20:18:23 +00:00
Matthias Melcher
d3db965083 Fixed a few memory faults found by Valgrind (yes, I finally got my Linux
machine up and running again)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 10:13:17 +00:00
Michael R Sweet
31d3e28bba Use 0 instead of NULL in waveOutOpen() call...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 02:59:59 +00:00
Michael R Sweet
4ba1119822 Workaround Solaris make problems...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 02:23:01 +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
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
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
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
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
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
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
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
Matthias Melcher
8bcfae7b11 Undid previous test change.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-06 09:55:36 +00:00
Matthias Melcher
4663981310 STR #1061: fixed Fl_Window::cursor for subwindows and GL windows on WIN32
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04 08:23:20 +00:00
Matthias Melcher
8979617990 STR #1052: updated color handling in test programs. If you are planning on creating labels based on foreground or background color, you should load the colors *before* creating the user interface. This is done by calling:
Fl::args(arc, argv);
Fl::set_system_colors();

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 13:57:56 +00:00
Michael R Sweet
ebddf5bf94 Change int to long in unittests callback, and add the standard FLTK
header/footer text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 12:52:44 +00:00
Matthias Melcher
77484a4e2d FLUID writes RGB and Bitmap image data as an array of decimal numbers instead of a string since "a certain compiler by a large operating system vendor which shall remain unnamed" can not handle long strings and produces heap overflows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-26 09:08:01 +00:00
Matthias Melcher
eefa09e632 STR #1023: some more test programs did not load the OS default colors
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-15 10:16:08 +00:00
Matthias Melcher
49fb8bc5c0 Fonts test program now starts using the correct color scheme
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-14 14:32:48 +00:00
Matthias Melcher
16719ceb8c Reverted to the correct version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-24 14:14:32 +00:00
Matthias Melcher
74fe8ccdf2 Typos
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-24 13:47:48 +00:00
Matthias Melcher
d1808c6165 'demo -s' would crash due to a missing argument on Fl::fatal()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-18 13:08:09 +00:00
Matthias Melcher
651bf8d275 Fixed unescaped '@' in fonts demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 07:57:14 +00:00
Matthias Melcher
88bb4a58d3 Fixed static allocation of 1000 font information units in fonts.cxx.
Although this fixes the crash, the font enumerator in FLTK should never return a number larger than 255 (which unfortunatly is the maximum number of fonts supported by FLTK 1 for binary compatibility)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-11 20:46:15 +00:00
Matthias Melcher
22986c92c4 STR #915: fixed hang on corrupt jpegs by giving a maximum of 10 chances for jpeg lib to clean up on damaged file reads.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4410 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-11 20:31:59 +00:00
Matthias Melcher
d523a9cc68 Documented the '00360' rotation feature in symbols
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 20:10:53 +00:00
Matthias Melcher
090eb71a26 OK, I admit that I am nuts. But since the code was mostly there anyways adding only a few bytes to the library in total, I added the symbols 'refresh' (formerly known as 'recycle'), 'reload', 'undo', and 'redo', and flags to flip symbols horizontaly '$', and verticaly '%'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 20:05:49 +00:00
Matthias Melcher
daa8f53397 Added a symbol named 'recycle' that can be used to refresh directory listings, etc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 13:41:01 +00:00
Matthias Melcher
900034ee65 Fixed the Round Plastic buttons to actually draw nice and riund, just
like the original scheme buttons. This is relatively slow, but worth
the effort, I beleive. Just use double buffered windows... .

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-27 11:33:34 +00:00
Michael R Sweet
067d8d2d16 Fix eol-style in Watcom files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-19 16:07:13 +00:00