Commit Graph

803 Commits

Author SHA1 Message Date
Michael R Sweet
d244d063ff APIENTRY doesn't need to be used for the font pointers in glut.H
APIENTRY should appear between the return type and function name.

WIN32 is defined by MSVC++, not _WIN32.  Updated the sources to work
with both.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-06 15:45:13 +00:00
Michael R Sweet
a7826cdc80 Updated the version numbers in spec and list files.
Added HP-UX shared library support in fltk.list.

Fixed error in documentation - Fl_Browser_ is derived from Fl_Group,
not Fl_Widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-06 13:59:46 +00:00
Bill Spitzak
45c06ba2c4 One more try to fix the APIENTRY stuff in glut.h. The file gl.h now
defines APIENTRY in all cases.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-28 15:32:07 +00:00
Michael R Sweet
3988dbf8bd Fixes for hidden class members...
(Bill, please look at the Fl_Menu_Type.cxx code around line 171; the
previous code didn't initialize level before it was used; I hope I
captured the original intent...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-21 21:37:08 +00:00
Michael R Sweet
7d432ff92c Get rid of "member X hidden by variable X" warnings...
Fix strcasecmp() detection...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 19:02:20 +00:00
Michael R Sweet
a45a6308d0 strcasecmp() for FLUID under AIX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:44:19 +00:00
Michael R Sweet
0c6010abea Fix for Fl_Scroll redrawing background.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:30:54 +00:00
Michael R Sweet
4b2003e24a Configure script changes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:12:39 +00:00
Michael R Sweet
d6353595a2 Put -c before $< for Sun PRO compilers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:10:00 +00:00
Michael R Sweet
26ce73d012 Doco and header updates for 1.0.10.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 14:53:52 +00:00
Michael R Sweet
e01a7a33d7 Commented out USE_ASYNC_SELECT since it doesn't seem to work...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 14:17:43 +00:00
Michael R Sweet
41df4bf0d1 Fl::below_mouse() was incorrectly clearing e_is_click; this prevented
any double-clicks from getting through...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 02:49:40 +00:00
Michael R Sweet
739e9411e7 Minor change for Sun C/C++ compilers (-xO3 instead of -O) for better
optimization.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-09 21:53:00 +00:00
Bill Spitzak
2cbf4041b3 Does not clear Fl::keysym on every event, this makes better back compatability and fixes Win2000
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-21 20:01:56 +00:00
Bill Spitzak
710dcef237 Fl_Menu_::add() ignores '&' signs when comparing menu items, so you don't
have to make the shortcuts the same all the time.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 07:39:06 +00:00
Bill Spitzak
12af974293 Another attempt to get glut.h to work on WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 07:30:22 +00:00
Bill Spitzak
65cbea2af3 CUA function keys, code submitted by George Yohng <yohng@drivex.dosware.8m.com>
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 07:23:42 +00:00
Bill Spitzak
b56f14d91c Fl::set_fonts() on WIN32 fixed to work before the first window is shown.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 07:03:41 +00:00
Bill Spitzak
a5d75b0fcd Fl_Tabs draws the background behind the tabs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 06:53:20 +00:00
Bill Spitzak
00cf38e1e3 Hack to fix the annoying "raise another application when a modal window
is closed" problem on WIN32.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 06:40:53 +00:00
Bill Spitzak
c30c095d72 Fluid restores which tab in an Fl_Tabs was selected when loads .fl
files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 06:33:59 +00:00
Bill Spitzak
77d42ecdd3 Menu titles and buttons in the menubar can be images (allows it to be used as a toolbar)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-23 08:21:52 +00:00
Bill Spitzak
59c2b2dd31 Fixed size of data written by gif images to .C files
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-23 08:15:12 +00:00
Bill Spitzak
ec8ebc1ef7 Fixed bit-flipping patterns in WIN32 bitmap code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-23 07:33:39 +00:00
Bill Spitzak
88076bafd1 Reads selectBackground from the xrdb database to set the selection color.
Adding this to your .Xdefaults will make fltk and Motif programs look
much more Windoze-like:
*selectForeground:              white
*selectBackground:              #000080


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-19 07:53:55 +00:00
Bill Spitzak
33c5896a26 FL_WHEN_RELEASE on Fl_Input will now do the callback when the input
field is hidden, for instance when it is on a tab and the user switches
to another tab.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-19 07:21:19 +00:00
Bill Spitzak
1a5acb3782 Fl_Gl_Window with an overlay on X always resized any child windows even
if you turned resizable() off because it turned it back on to resize
the overlay window. This patch avoids changing resizable().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-15 07:52:51 +00:00
Bill Spitzak
9a602688e8 Fix so multiple Fl::add_idle() calls works
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-05 17:15:48 +00:00
Bill Spitzak
b786f11bc6 The input focus got messed up if you called Fl_Tabs::value(x) and there
was something that took focus on an earlier tab.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-30 05:51:39 +00:00
Bill Spitzak
d7b0d5b732 Removed ^M chars from Makefile.os2x
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-22 16:36:26 +00:00
Bill Spitzak
949479b5b2 Removed some (not all) of the warnings when compiled with -Wwrite-strings,
this should also get similar warnings Solaris produces.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-20 04:35:17 +00:00
Bill Spitzak
23689de7fb Changes & additions for OS/2 from Alexander Mai
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-19 19:03:46 +00:00
Bill Spitzak
a10d8f201a Made Fl_Browser not hide the Fl_Widget::show() method
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-19 17:10:47 +00:00
Bill Spitzak
fb06bd8019 Patch from Mike Lindner to make the turning on/off of scrollbars on
Fl_Scroll smarter. It appears to work with my own tests. He did not
handle FL_ALIGN_TOP correctly, fixed that.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-12 08:42:12 +00:00
Bill Spitzak
797d78d86c Shortcuts for "buttons" in a Fl_Menu_Bar work again.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-30 00:31:44 +00:00
Bill Spitzak
9bfbc26899 Added missing FL_EXPORT for format()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-29 23:52:04 +00:00
Bill Spitzak
97a234ff4a While looking at Xdnd I discoverd that jx (or at least their demo program)
cannot paste from fltk programs.  This appears to be because JX barfs if
the pasting program does not respond correctly to the TARGETS XConvertSelection.
I added a response that fltk only can do text and this seems to make it
work.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-13 08:51:22 +00:00
Bill Spitzak
ba1d83cf47 Shortcuts for submenu titles in a menubar pop up the submenu (rather than calling the callback)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-11 05:36:39 +00:00
Bill Spitzak
42cf3ff815 Added documentation for GL_SWAP_TYPE
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-10 07:32:10 +00:00
Bill Spitzak
7badf7c216 Buttons with box(FL_NO_BOX) did not draw. Apparently they did in
older versions of fltk, I restored this. (bug 108771)

Removed 8-bit colormap drawing code that was not doing anything in
fl_draw_image due to Mike's changes.  I also made fl_color(r,g,b)
actually allocate the requested color rather than the nearest fltk
color-cube color (this is only done for the first color that maps to a
given entry in the fltk color cube), the result is that pixmaps with a
small number of colors are drawn much more accurately. The resulting
code seems to produce better images and is a good deal smaller!

Fixed makeinclude.in so CFLAGS are used for c source code instead of
CXXFLAGS. (bug 108694)

Better fix for gif files suggested by pauly (bug 108770)

Performance of Fl_Gl_Window may be improved on some types of OpenGL
  implementations, in particular MESA or other software emulators, by
  setting the GL_SWAP_TYPE environment variable.  This variable
  declares what is in the back buffer after you do a swapbuffers.

  setenv GL_SWAP_TYPE COPY

    This indicates that the back buffer is copied to the front buffer,
    and still contains it's old data. This is true of many hardware
    implementations.  Setting this will speed up emulation of
    overlays, and widgets that can do partial update can take
    advantage of this as damage() will not be cleared to -1.

  setenv GL_SWAP_TYPE NODAMAGE

    This indicates that nothing changes the back buffer except drawing
    into it.  This is true of MESA and Win32 software emulation and
    perhaps some hardware emulation on systems with lots of memory.

  All other values for GL_SWAP_TYPE, and not setting the variable,
  cause fltk to assumme that the back buffer must be completely
  redrawn after a swap.

  This is easily tested by running the gl_overlay demo program and
  seeing if the display is correct when you drag another window over
  it or if you drag the window off the screen and back on. You have to
  exit and run the program again for it to see any changes to the
  environment variable.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-07 08:38:58 +00:00
Bill Spitzak
a5ae7d54a6 Fix suggested by Stuart Levy to fix scrolling when deleting items from
the browser.

I replaced the -$(MAKEFLAGS) with $(MFLAGS) as per the gmake
documenation.  Apperntly this works with other make programs and
MAKEFLAGS is passed invisibly by gmake, though the documenation is not
too clear...
VS: ----------------------------------------------------------------------


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-30 04:23:13 +00:00
Bill Spitzak
e2e44bfcd5 Fixed .gif files in fluid, they were broken by the fix for large .xpm
files in version 1.0.9.

Fix for OpenGL hardware overlays with the transparent index != 0.
Tested on the brand new HP Linux Workstations, this is the only bug
encountered.  Both X and OpenGL hardware overlay works perfectly on
these, though configue may not enable it by default...)

Fl_Choice and all other Fl_Menu_ subclasses draw the items using
textcolor() as the default color of the text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-29 07:23:56 +00:00
Michael R Sweet
753c53cc75 calc_error() needs the colormap color values; changed to reference the
fl_cmap array (this might actually be off from the colormap value that
is actually allocated, but hopefully this patch will eliminate extra
color allocations anyways...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-27 23:30:54 +00:00
Michael R Sweet
a141e143ba Optimization for 8-bit displays - allocate colors as they are used from
the FLTK color cube.

**** NEEDS TESTING ****


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-27 23:07:51 +00:00
Bill Spitzak
5315bd72a4 Patch from Shigeru Mukaida to fltk.spec to make rpms work?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1237 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-24 20:43:33 +00:00
Bill Spitzak
8fa6a779f9 Patch from Shigeru Mukaida to fltk.spec to make rpms work?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1236 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-24 20:30:24 +00:00
Michael R Sweet
8eb48a8014 Added change note for GLUT_ROMAN and changed note for add_interval_timeout
to repeat_timeout...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-21 18:48:17 +00:00
Bill Spitzak
1150141ead Changed the name of the new function from "add_interval_timeout" to
"repeat_timeout", which is shorter and more accurately describes what
it does.

GLUT_STROKE_*_ROMAN in glut.h are defined as 0,1 on WIN32 to match the
glut header files there.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-21 17:36:36 +00:00
Michael R Sweet
23594d8374 Added maximum_size() docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-20 21:01:37 +00:00
Carl E. Thompson
463681c1ca Fixes for Cygwin and MinGW.
Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-20 18:47:33 +00:00