Commit Graph

54 Commits

Author SHA1 Message Date
Sam Lantinga
41698e66b6 Updated libtool support so Mingw32 builds work. 2003-10-06 07:13:16 +00:00
Sam Lantinga
aedc2055b1 Date: Fri, 15 Aug 2003 09:13:59 +0300
From: "Mike Gorchak"
Subject: Patches for tests and QNX6

1) graywin - added support for the gray gradient in the 15/16 bpp modes. Added SDL_VIDEOEXPOSE event handling.
2) testalpha - added support for the gray gradient in the 15/16 bpp modes.
3) testbitmap - added support for the gray gradient in the 8/15/16 bpp modes.
2003-08-23 23:18:49 +00:00
Sam Lantinga
a27dd04860 *** empty log message *** 2003-08-09 18:22:16 +00:00
Sam Lantinga
7ca76eb401 *** empty log message *** 2003-08-08 21:39:12 +00:00
Sam Lantinga
fe45cd4244 Date: Mon, 28 Jul 2003 18:30:50 +0300
From: "Mike Gorchak"
Subject: New test for overlays

While writting QNX Photon Overlay code I've found that the existent overlay test application is not enough, it performs too artificial tests - it always moves/resizes the overlay's viewport, but in the real life that happens very rare. So I decided to write new test (commonly base on testoverlay.c code) and called it testoverlay2 :)

moose.dat - raw 8 bit paletted data of the small movie. (It was a moose.gif, also included in the attachment as reference, but not needed for this test, it is just for information). I cannot find, who created this .gif, so no credits this time :) But over inet I saw this gif zillion times, so I think we do not infringing somebody rights :)
2003-08-08 21:31:18 +00:00
Sam Lantinga
4822bb295e *** empty log message *** 2003-08-08 18:00:39 +00:00
Sam Lantinga
d430656ec6 Date: Sat, 2 Aug 2003 16:22:51 +0300
From: "Mike Gorchak"
Subject: New patches for QNX6

Here my patches for the SDL/QNX:

QNXSDL.diff - diff to non-QNX related sources:

- updated BUGS file, I think QNX6 is now will be officially supported
- configure.in - added shared library support for QNX, and removed dependency between the ALSA and QNX6.
- SDL_audio.c - added QNX NTO sound bootstrap insted of ALSA's.
- SDL_sysaudio.h - the same.
- SDL_nto_audio.c - the same.
- SDL_video.c - right now, QNX doesn't offer any method to obtain pointers to the OpenGL functions by function name, so they must be hardcoded in library, otherwise OpenGL will not be supported.
- testsprite.c - fixed: do not draw vertical red line if we are in non-double-buffered mode.

sdlqnxph.tar.gz - archive of the ./src/video/photon/* . Too many changes in code to make diffs :) :

+ Added stub for support hide/unhide window event
+ Added full YUV overlays support.
+ Added window maximize support.
+ Added mouse wheel events.
+ Added support for some specific key codes in Unicode mode (like ESC).
+ Added more checks to the all memory allocation code.
+ Added SDL_DOUBLEBUF support in all fullscreen modes.
+ Added fallback to window mode, if desired fullscreen mode is not supported.
+ Added stub support for the GL_LoadLibrary and GL_GetProcAddress functions.
+ Added resizable window support without caption.
! Fixed bug in the Ph_EV_EXPOSE event handler, when rectangles to update is 0 and when width or height of the rectangle is 0.
! Fixed bug in the event handler code. Events has not been passed to the window widget handler.
! Fixed codes for Win keys (Super/Hyper/Menu).
! Fixed memory leak, when deallocation palette.
! Fixed palette emulation code bugs.
! Fixed fullscreen and hwsurface handling.
! Fixed CLOSE button bug. First event was passed to the handler, but second terminated the application. Now all events passed to the application correctly.
- Removed all printfs in code, now SDL_SetError used instead of them.
- Disabled ToggleFullScreen function.

README.QNX - updated README.QNX file. Added much more issues.
2003-08-04 00:52:42 +00:00
Sam Lantinga
7777531c48 Merged in Ryan's multisample code for MacOS, and changed the constants to match. 2003-07-22 15:33:28 +00:00
Sam Lantinga
19ffa849ea Date: Thu, 24 Apr 2003 15:13:47 -0400
From: Shawn Kirst
Subject: SDL-1.2.5 patch to add ARB_multisample support

Attached is a patch I have written for SDL-1.2.5 that adds ARB_multisample
support.  I only have the X11 and Win32 video patched.  The Win32 patch also
adds support for WGL_ARB_pixel_format, as it was required for getting a
multisample capable pixel format.  No additional GL header files are required
to compile on either platform (though you need an up-to-date glx.h for X11).

Requesting a multisample pixel format is made possible using
SDL_GL_SetAttribute with the two new SDL_GLattr's I've added
(SDL_GL_SAMPLE_BUFFERS and SDL_GL_SAMPLES).  I've been using SDL in my
projects for quite a while now, so I am happy to contribute back to the
project.  Now you can have and control FSAA in your SDL/GL apps at the
application level!
2003-07-22 15:10:06 +00:00
Sam Lantinga
ca4e4bfbea Added MacOS X CD-ROM audio support (thanks Max and Darrell) 2003-04-15 16:33:56 +00:00
Sam Lantinga
400541a661 *** empty log message *** 2003-03-22 17:39:26 +00:00
Sam Lantinga
9c74d97a17 IRIX patches from Andrea Suatoni 2003-03-06 06:12:41 +00:00
Sam Lantinga
c395fec8fe From: Jonathan Atkins
Subject: testoverlay...

here's a fun one:
./testoverlay -scale -h

it seems to print argv[optind-1] as the program name...
2003-03-06 05:57:29 +00:00
Sam Lantinga
99a4825fd7 Allow icons of any size 2003-02-01 20:32:44 +00:00
Sam Lantinga
3f9d5f4381 Added code to testsprite to detect tearing when flipping 2003-02-01 19:56:45 +00:00
Sam Lantinga
cae60fcfb6 Date: Thu, 16 Jan 2003 13:48:31 +0200
From: "Mike Gorchak"

added help and options -mono to force monochrome RGB2YUB conversion and
-lum <percent> - luminance of image during conversion. Also rewritten code
which moves overlay into window. Now it depends on window size.
Also fully rewritten -scale option, image now scaling from 50% from center
of screen until border of window is reached - it really tests scaler, old
-scale test doesn't test downscale.
2003-01-20 01:36:28 +00:00
Sam Lantinga
6c4c4dba45 Date: Thu, 16 Jan 2003 13:48:31 +0200
From: "Mike Gorchak"

added showing of type of the track, when adding -list arg
2003-01-20 01:35:44 +00:00
Ryan C. Gordon
fb8eba0ceb Added some code to toggle fullscreen and input grab for testing... --ryan. 2002-12-20 03:37:28 +00:00
Sam Lantinga
9cdb9f7cfd Added support for testing video flipping with graywin.c 2002-11-09 05:52:49 +00:00
Sam Lantinga
392ac3b23b *** empty log message *** 2002-10-11 08:45:07 +00:00
Sam Lantinga
c0c0ed11bc *** empty log message *** 2002-10-08 16:29:01 +00:00
Sam Lantinga
f88b920282 Fixed a crash bug in checkkeys.c (thanks John!) 2002-09-16 06:21:23 +00:00
Sam Lantinga
73db15f343 *** empty log message *** 2002-09-16 06:17:34 +00:00
Sam Lantinga
5679c735cd Fixed path problem with sdl.m4 macro file 2002-09-09 05:12:32 +00:00
Sam Lantinga
42b8b5969f *** empty log message *** 2002-09-01 00:40:12 +00:00
Sam Lantinga
9da24fd6d3 *** empty log message *** 2002-09-01 00:38:49 +00:00
Sam Lantinga
9d98ccf9cc Fixed some bugs and added some features to the -benchmark facility 2002-08-31 21:00:28 +00:00
Sam Lantinga
b0eb751c2e Added a -benchmark flag for testing the speeds of various video modes 2002-08-31 19:48:11 +00:00
Sam Lantinga
3a9431907d Added a -fullscreen flag 2002-08-25 18:59:11 +00:00
Sam Lantinga
f22361feb4 *** empty log message *** 2002-06-13 21:40:18 +00:00
Sam Lantinga
758c145390 Date: Wed, 22 May 2002 22:30:58 +0300
From: "Mike Gorchak" <mike@malva.com.ua>
Subject: One more QNX patch

Hi !

- Fixed graywin test application. Added properly support for
  window size not equal to 640x480.
- Added support for not aligned pitch of image in SDL_SWSURFACE
  and SDL_HWSURFACE. Using Photon builtin alignes.
- Added memory clear after each malloc to avoid problems in the
  future :)
- Removed unused variables and static variables, fixed some warnings.
- Updated readme.QNX file.
2002-05-28 19:31:32 +00:00
Sam Lantinga
502e76ef5b Date: Thu, 18 Apr 2002 13:50:53 -0700
From: Joseph Carter <knghtbrd@bluecherry.net>
Subject: [SDL] A critical bugfix!

I discovered a problem with testgl.c which absolutely MUST be fixed!  Not
fixing this bug immediately will be a great blow to budding OpenGL coders
everywhere!
2002-04-19 03:29:22 +00:00
Sam Lantinga
8021f9eaf2 Date: Thu, 28 Mar 2002 09:20:03 +0200
From: "Mike Gorchak" <mike@malva.ua>
Subject: New QNX patch.

Hi !

1. Removed warning (possible bug) with invalid type, passing to the function
in ph_WarpedMotion.
2. Rewritten handler of Ph_WM_RESIZE message, now works, but buggy (old
handler doesn't work at all).
3. Added stub handler for Ph_WM_MAX (maximize) message.
4. Added more #ifdef HAVE_OPENGL to disable OpenGL stuff when it not needed.
5. Added support for SDL_NOFRAME and SDL_RESIZABLE flags (in OpenGL windows
too).
6. Added cosmetic changes, if no SDL_RESIZABLE flag defined, disable resize
handlers in window border and maximize button at caption.
7. Fixed my bug with invalid arguments count passed to PtCreateWidget call.
8. Fixed some palette problems.
9. Updated README.QNX file.

And I changed testgl.c test application:

10. Added in testgl.c application support for SDL_NOFRAME flag and
option -noframe.
2002-03-28 16:20:10 +00:00
Sam Lantinga
393bef31ab Added SDL_LockRect() and SDL_UnlockRect()
Incorporated XFree86 extension libraries into the source
2002-03-05 19:55:32 +00:00
Sam Lantinga
d7055457fd Updated for Watcom C++ and LCC compilers 2002-02-28 00:28:26 +00:00
Sam Lantinga
f9c91db65a Added a YUV overlay test program (thanks Jon!) 2002-02-14 00:47:46 +00:00
Sam Lantinga
ab110067b7 Added QNX cleanups by Mike Gorchak (thanks!) 2002-01-18 18:14:03 +00:00
Sam Lantinga
acfcfd3e44 Updated the source with the correct e-mail address 2001-12-14 12:38:15 +00:00
Sam Lantinga
abd77ea5eb Fixed testgl so that SDL_GL_Enter2DMode() allows alpha blending 2001-11-22 06:34:25 +00:00
Sam Lantinga
a21f7c3378 Modified the logo texture load to accept any width/height image 2001-11-06 01:48:36 +00:00
Sam Lantinga
a0863fed88 SDL_OPENGLBLIT is deprecated, show the "right way" of doing things 2001-11-06 00:15:24 +00:00
Sam Lantinga
c169d9f015 Give more info about the current video mode 2001-11-04 04:18:05 +00:00
Sam Lantinga
1ef2a67a85 *** empty log message *** 2001-11-02 19:51:43 +00:00
Sam Lantinga
5f2a95f4ca *** empty log message *** 2001-11-02 18:12:52 +00:00
Sam Lantinga
312bc6134c Added platform independent OpenGL header - SDL_opengl.h 2001-10-25 05:37:32 +00:00
Sam Lantinga
6de0291d84 Date: Sat, 8 Sep 2001 04:42:23 +0200
From: Max Horn <max@quendi.de>
Subject: SDL/OSX: Joystick; Better key handling

I just finished implementing improved keyhandling for OS X (in fact
the code should be easily ported to the "normal" MacOS part of SDL, I
just had no chance yet). Works like this:
First init the mapping table statically like before. Them, it queries
the OS for the "official" key table, then iterates over all 127
scancode and gets the associates ascii code. It ignores everythng
below 32 (has to, as it would lead to many problems if we did not...
e.g. both ESC and NUM LOCk produce an ascii code 27 on my keyboard),
and all stuff above 127 is mapped to SDLK_WORLD_* simply in the order
it is encountered.
In addition, caps lock is now working, too.
The code work flawless for me, but since I only have one keyboard, I
may have not encountered some serious problem... but I am pretty
confident that it is better than the old code in most cases.


The joystick driver works fine for me, too. I think it can be added
to CVS already. It would simply be helpful if more people would test
it. Hm, I wonder if Maelstrom or GLTron has Joystick support? That
would be a wonderful test application :)


I also took the liberty of modifying some text files like BUGS,
README.CVS, README.MacOSX (which now contains the OS X docs I long
promised)
2001-09-11 19:00:18 +00:00
Sam Lantinga
f61baca1b7 *** empty log message *** 2001-09-04 23:22:23 +00:00
Sam Lantinga
203a092147 Fixed crash in testsprite when using the -fast option (nobody caught this?) 2001-07-13 10:20:43 +00:00
Sam Lantinga
3e6462b905 Added -width and -height command line options 2001-07-07 06:33:33 +00:00
Sam Lantinga
6fd76c4cb0 Added MacOS X Project Builder projects 2001-06-10 18:20:23 +00:00