62 Commits

Author SHA1 Message Date
sinamas
91baf38ddf don't build xf86vidmodetoggler by default
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@141 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-04-06 05:46:53 +00:00
sinamas
81fdc1e2bb - add direct3d9 blitter with support for vsync, bf,
page flipping, triple buffering, device selection,
  multi-head etc. d3d9.dll loaded at runtime
- more strict and thorough exclusive mode handling to support d3d fullscreen
- work around file open dialog not returning focus properly
- gditoggler: use current registry settings for return modes
- directsoundengine: set DSBCAPS_GETCURRENTPOSITION2 flag
- revert bad macx return from fullscreen on menu-toggle


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@140 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-25 23:59:42 +00:00
sinamas
37161f3599 directsoundengine: add device selection.
directdrawblitter: only list devices if there are more than 2 devices (including primary)
directdrawblitter: use private static member rather than global friend enumeration callback
capitalization changes


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@139 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-19 14:23:01 +00:00
sinamas
cdf2af953a Add directdraw device selection.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@138 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-19 13:08:34 +00:00
sinamas
e3f8f0cba7 gditoggler: add multi-monitor support (win32)
videodialog: save actual hz values for real this time
quartztoggler: avoid potentially reverting to the wrong mode on double setFullMode(false) in multi-head configs
make sure window is within screen after mode change, so Qt doesn't reset it to the primary screen
revert to previous win32 fullscreen geometry correction behaviour so that the geometry gets properly reset after fullscreen



git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@137 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-19 00:15:56 +00:00
sinamas
83b4aaf1e6 refactor Blitterwidget::sync
directdrawblitter: remove unecessary turbo conditions


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@135 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-17 20:34:54 +00:00
sinamas
a639d756f5 fix win32 compilation
refix win32 fullscreen geometry correction
neater win32 BlitterWidget::sync
avoid misleading minimize on fullscreen close


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@134 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-17 15:28:21 +00:00
sinamas
ae33ac33e5 - macx fixed/variable window size change issue fixed
- macx opengl drawbuffer change issues worked around
- add openal engine, default on macx
- add macx quartz video mode toggler
- multi-head infrastructure
- support multiple monitors in macx quartz toggler
- more work-arounds for Qt failing to set correct geometry on video mode changes.
- more explicit fast-forward button handling, to avoid missed key press/release events on macx
- opengl doublebuffer preblitting, try to make actual screen updates as close to right after sync wait is over as possible
- add xf86vidmode toggler (xrandrtoggler is default)
- x11blitter: check for other supported visuals if the default is unsupported.
- temporarily return to original video mode and minimize on full screen alt-tab (except on macx or if there are multiple screens), switch back on focus-in
- hide mouse cursor after move timeout, or key/joystick pressed (more sane on macx)
- exit fullscreen rather than toggle menubar on macx (note that the menubar will automatically pop-up on macx full screen if the mouse is moved to the top of the primary screen)
- add (independent) pause counter for non-client pauses.
- reset X11 screen saver on joystick activity
- change "turbo"-mode to temporarily set frametime as a way of avoiding vsync issues (for a laugh, check out the video dialog while in fast-forward mode and see "Sync to vertical blank in 65535 and 131070 Hz modes").


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@133 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-15 06:29:29 +00:00
sinamas
4f4eca0f0c less bloated
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@132 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-05 18:38:41 +00:00
sinamas
5c67ae2bc0 exclude iostream
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@131 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-05 14:37:05 +00:00
sinamas
279b71edf3 center linear weighing bias
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@130 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-05 14:34:39 +00:00
sinamas
5b67580b0c remove forgotten static qualifiers
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@128 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-03 12:05:59 +00:00
sinamas
8e861b603a add unrestricted fast bilinear and nearest neighbor sw scaling to x11/qpainter blitter
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@127 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-03 12:01:59 +00:00
sinamas
e0a9a25623 fix blittercontainer incorrectly using minimumSize for integer scaling
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@125 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-02-16 02:16:21 +00:00
sinamas
aea92e4d6b fix 24-bit depth non-shm ximage creation
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@124 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-02-15 01:36:56 +00:00
sinamas
5551605e04 clarify that "samples" refers to stereo samples
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@123 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-02-12 21:24:46 +00:00
sinamas
d14b943b27 add sampleRate info to MediaSource::setSampleBuffer.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@122 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-02-12 20:58:51 +00:00
sinamas
2bddacb1c3 improved ALSA buffer reporting last update, changed some whitespace this update to get it logged.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@121 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-02-12 13:02:34 +00:00
sinamas
bcae9f7213 Decouple Qt GUI from gambatte.
Lots of cleanups, flexibility added, setting of various properties, frame time,
aspect ratio, button events, video sources, sample rates, pauseOnDialogExec, custom menus etc.
Document some interfaces.
Support for setting approximate sound buffer latency.
Use rational math for 100% exact timers (even though the actual system timers are unlikely to be accurate).
Add fast-forward to input settings.
Scalebuffer dstpitch aware.
timeGetTime() fallback for win32
Store full screen mode values/text rather than less reliable indexes.
Repaint on xvblitter port changes to avoid color key not getting repainted.
stuff I forgot


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@120 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-02-12 12:59:18 +00:00
sinamas
630e0e6c3a int width deps. Gambatte namespace
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@112 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-12-25 19:32:18 +00:00
sinamas
a381fc4551 hopefully fix opengl clearing issues
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@109 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-11-18 16:44:45 +00:00
sinamas
c4139c1153 macx build fixes
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@108 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-11-18 15:25:24 +00:00
sinamas
142db80a37 Fix fixed window size issues with various window managers (metacity, xfwm4...)
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@107 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-11-18 15:15:41 +00:00
sinamas
63a416449c more likely to build on mac os x
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@103 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-11-12 03:03:30 +00:00
sinamas
1434744b5b actually enable POV-hat events.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@98 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-10-26 20:26:33 +00:00
sinamas
8bfdce90cd Add global buffer option
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@96 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-10-25 13:24:32 +00:00
sinamas
0c98dea2a3 Add support for DMG palette customization.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@93 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-10-25 08:04:24 +00:00
sinamas
00d165c523 add reset action
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@92 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-10-08 20:52:37 +00:00
sinamas
a0c044845a make subblitters private nested classes
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@91 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-10-08 20:06:51 +00:00
sinamas
794ba59cb6 Add sound dialog. Add custom dev choice for oss, alsa engines. Use rgb if available for xv. Fix lame auto_ptr bug.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@90 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-10-08 18:54:49 +00:00
sinamas
9f9c153b27 auto_ptr love. support joystick hat. nicer input handling.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@89 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-10-07 12:31:06 +00:00
sinamas
898470e3b4 remove some useless optimizations
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@78 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-20 12:57:33 +00:00
sinamas
860577e1d7 Fix horrid "turbo can affect emulation" bug.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@76 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-18 17:24:11 +00:00
sinamas
b7a4e7f263 remove unused unusedBool
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@74 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-16 15:36:58 +00:00
sinamas
f598469405 use std::map for input vectors
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@72 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-16 15:00:48 +00:00
sinamas
39c1a0099a no point in filter being non-static anymore
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@70 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-15 08:43:16 +00:00
sinamas
7487e81a59 get rid of some valgrind warnings
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@64 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-05 17:48:00 +00:00
sinamas
50a2e9d951 make sure to use std:: despite sloppy compilers allowing omission. thanks to blargg for the reminder.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@61 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-05 16:08:46 +00:00
sinamas
808dd8fae9 initial joystick support
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@60 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-05 15:20:47 +00:00
sinamas
8943522fdb use original license
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@55 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-09-01 14:09:02 +00:00
sinamas
989aa3550d fix å
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@53 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-31 10:26:21 +00:00
sinamas
f3b412cefe Add zip support. Thanks to Nach.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@50 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-30 12:26:25 +00:00
sinamas
d8086c78d2 fix 64-bit compile and segfault
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@48 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-30 08:28:52 +00:00
sinamas
b771cfdf81 add man pages
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@46 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-29 13:10:52 +00:00
sinamas
8a28cf25d7 Fix unordered video mode listing
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@45 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-29 11:35:19 +00:00
sinamas
d57edd6eec s/"a highly accurate"/"an accuracy-focused"/
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@41 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-28 09:22:20 +00:00
sinamas
003e329e01 add support for loading rom from program argument
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@39 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-28 08:39:37 +00:00
sinamas
a1b30c7dd7 Only use alpha if primary surface uses it.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@36 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-28 06:16:23 +00:00
sinamas
350869e63f remove unneccessary sys/ipc include
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@33 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-27 15:15:55 +00:00
sinamas
01155cc5c9 remove obsolete sys/types.h include
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@32 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2007-08-27 15:11:55 +00:00