Commit Graph
70 Commits
Author SHA1 Message Date
Steve Checkoway c6c04d8c6b Remove out of date comment, cleanup. 2005-10-25 02:53:35 +00:00
Glenn Maynard 539ec6aa5c HAVE_WIN32 -> WINDOWS. HAVE_LINUXKERNEL -> LINUX. If some features originating in Linux work on other systems, then define them specifically (eg. HAVE_LINUX_JOYSTICKS). 2005-10-24 07:22:28 +00:00
Glenn Maynard e60e016ce8 comment 2005-09-04 18:00:44 +00:00
Chris Danford 48ebc53549 return NULL -> return CString() for clarity and efficiency 2005-09-04 16:55:21 +00:00
Glenn Maynard 16a1a71848 remove unused fDeltaTime 2005-07-12 23:14:21 +00:00
Glenn Maynard 94abe52637 headers don't include global.h 2005-07-12 04:39:57 +00:00
Glenn Maynard 78ed7dd2c7 pull the data from the right place. arch code is low-level, ThemeManager is high-level. arch should not use ThemeManager; that creates a conceptual dependency loop, which makes code reuse much harder. (should do this in Dialog, too ...) 2005-06-03 23:27:58 +00:00
Ben Anderson cde2db8c62 I've got a better idea. Let's respect the theme metric specifically designated for this. 2005-06-03 19:01:16 +00:00
Ben Anderson 78bc7c27b2 Partial semi-revert; X11Helper is supposed to catch that the window isn't open (I just fixed that), not us making sure to unmask only after the window is created. 2005-06-03 18:45:03 +00:00
Chris Danford 265d9d56df Center the window in the display 2005-06-03 18:28:20 +00:00
Glenn Maynard 6c76e19d19 cleanup 2005-05-28 03:39:24 +00:00
Glenn Maynard 19bcc75d42 fix BadWindow warning due to calling XSelectInput before creating the window
fix uninitialized windowIsOpen
windowIsOpen -> m_bWindowIsOpen
use PRODUCT_NAME
one-line header comment goes on the very first line (eg. "head -1"); format it consistently, and be concise
2005-05-28 03:31:18 +00:00
Glenn Maynard 9e6db9eb4c cleanup 2005-05-28 03:12:58 +00:00
Glenn Maynard 7f50526d37 remove unused function 2005-05-28 02:38:31 +00:00
Glenn Maynard 329f23d8ad simple cosmetic changes to match code style 2005-04-23 22:13:19 +00:00
Glenn Maynard f4c3c1a759 add nvidia vsync hack from the SDL driver (copy and paste; not worth splitting it out) 2005-04-21 05:14:25 +00:00
Ben Anderson def9a3a267 Remove hack; no longer necessary 2005-04-05 03:08:31 +00:00
Ted Percival a05a9623d0 set window title 2005-03-27 11:48:46 +00:00
Ben Anderson 063298de3d Fix window resizing, and add a harmless workaround for my obscure WM. Recreating the window (when the depth changes) now works too. 2005-03-16 05:55:01 +00:00
Ben Anderson 18296126df Do things a little closer to the way SDL does them (but not much), magical hack that fixes performance issues for X11 on some (all?) systems, use variables instead of functions for Dpy and Win in X11Helper, a couple formatting tweaks. 2005-03-16 02:23:07 +00:00
Ben Anderson 167e5aebc0 Put all the Make* functions into a single .h/.cpp file (yes, kinda like the way it was), and add Make* functions for DialogDrivers. This means there's only one object that's affected by drivers being added/removed. (Driver default changes are a little different -- 2 or 3 objects.) Also one or two minor cleanups. (note: I apparently don't know much about CVS, it appears that some files might not make it into the repository; hang tight, I'm trying to find a solution.) 2005-03-15 00:30:26 +00:00
Ben Anderson 566d2b9d35 Set current parameters after a successful video mode try. 2005-03-14 23:51:58 +00:00
Ben Anderson 0db665d4d6 Thorough(!) remodeling of the arch/ directory and the contents therein; fixed link-time warnings on GCC and should make things a lot easier to manage. A pile of other random things too, mostly cleanups and getting things to work with the remodeled arch/ directory. 2005-03-14 06:44:38 +00:00
Ben Anderson bee0a762d2 Remap the window when remodeling to work around possible buggy WMs and/or X servers; remove useless trace; random cleanups, formatting adjustments, etc 2005-03-14 00:26:14 +00:00
Ben Anderson 6df8be39ec Play nice with RageDisplay_OGL GLX hacks 2005-03-13 22:54:50 +00:00
Ben Anderson 907bfa03eb I'm such an idiot, I forgot to map the window! Also, slight reordering to make things theoretically more efficient. 2005-03-13 22:40:41 +00:00
Ben Anderson de3c510f73 Make hackish assumption for now, we can fix that properly later. 2005-03-13 21:23:58 +00:00
Ben Anderson 2a7290ce16 Numerous fixes, now compiles on GCC 3.4 and should on most other compilers 2005-03-13 20:44:43 +00:00
Ben Anderson 58c6b37389 Oops, little hangover from a previous design there... 2005-03-13 20:13:01 +00:00
Ben Anderson fbc1ebcf32 Second time today I forgot something... unmask StructureNotify events so we actually GET the MapNotify event! 2005-03-13 19:18:23 +00:00
Ben Anderson f5b08ace8e And after a long wait, here it is -- LowLevelWindow_X11. InputHandler_X11 coming soon... 2005-03-13 19:05:20 +00:00
Glenn Maynard 7ccda6012d use GraphicsWindow::GetHwnd 2005-02-07 09:16:00 +00:00
Glenn Maynard 6fdf6bfa57 cleanup 2005-01-20 02:07:02 +00:00
Glenn Maynard c326423dce move win32 pixel format dumping code into LowLevelWindow_Win32 2004-10-23 02:16:59 +00:00
Chris Danford 6fd5183134 more "for" scope fixes 2004-09-25 05:10:10 +00:00
Glenn Maynard c88ddccc73 Native Win32 LowLevelWindow. This gets rid of SDL in Windows.
It seems to handle mode switching slightly better in OpenGL: I still
get the "windows resize to the fullscreen resolution" and "maximized
windows go under the taskbar" problems occasionally when I change the
resolution in game, but they no longer happen when I simply play the game
in fullscreen.  We also can avoid reloading textures on mode change in
many cases.  (This is not going into the 3.9 release.)
2004-09-21 08:54:49 +00:00
Glenn Maynard cd61a9fd27 fix SDL_VIDEODRIVER not being set for SDL loading windows 2004-09-16 21:32:14 +00:00
Glenn Maynard 51a259c6a5 log SDL_GetAppState 2004-09-14 19:05:53 +00:00
Steve Checkoway a9d0169058 Don't show/hide the cursor unless the video mode change was successful. 2004-08-21 06:27:31 +00:00
Hugo Hromic M 03b5a724e9 Make mouse cursor off by default before creating the window 2004-08-21 04:53:07 +00:00
Steve Checkoway c92d595bc4 Show/hide the cursor after setting the video mode. 2004-08-07 00:59:01 +00:00
Steve Checkoway f5ec5019d6 simplify 2004-06-19 06:46:13 +00:00
Glenn Maynard 7ef3d3e6bb set g_X11Display 2004-06-14 05:50:40 +00:00
Glenn Maynard 34b3862833 log SDL version 2004-06-14 05:19:42 +00:00
Glenn Maynard c2d109dc02 events 2004-06-14 03:55:38 +00:00
Glenn Maynard 03e11c81a1 call SDL_UpdateHWnd 2004-06-14 03:34:38 +00:00
Glenn Maynard f4cea53212 HandleSDLEvents, comment 2004-06-14 03:13:13 +00:00
Glenn Maynard 9553f513c2 fix confusing SDL error message 2004-05-20 23:50:34 +00:00
Glenn Maynard 97791d82f0 license update 2004-05-15 22:30:30 +00:00
Glenn Maynard e2d6911fb9 set SDL_VIDEODRIVER so SDL doesn't try to fire up aalib, etc 2004-04-10 06:28:08 +00:00