Commit Graph

1014 Commits

Author SHA1 Message Date
sinamas
6aff6b2cbd Fix LY display disable regression
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@164 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-10-01 10:26:05 +00:00
sinamas
378db29118 Correct unhalttime when resetting counters. Fixes perodic infinite halt issue in Kirby's Star Stacker and probably other games.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@163 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-16 21:27:11 +00:00
sinamas
0da282ee15 Prevent all text editing of input boxes.
Add custom context menu to input boxes.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@162 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-16 21:20:10 +00:00
sinamas
a0bc227484 Only ask for xrandr config once to avoid potential server roundtrips in some xrandr versions.
Make sure xrandr version is >= 1.1 and < 2


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@161 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-11 22:01:52 +00:00
sinamas
dc496432d1 fix silly "alsa not using default device by default" bug
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@160 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-11 21:08:59 +00:00
sinamas
dd884dd74f Fix GCC 4.3 warnings about people getting confused by operator precedence by adding parentheses.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@159 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-11 20:56:40 +00:00
sinamas
3f386309ea Fix potential problem with rgb32ToUyvy cache init values on 16-bit systems
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@158 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-09 01:38:26 +00:00
sinamas
d96388dd8e Fix wrong pitch passed to filter if color conversion is needed.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@157 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-09 01:36:21 +00:00
sinamas
3b3a1a6d59 fix gcc-4.3 compilation
avoid signed overflow in constant (which is both undefined and likely to cause problems on architectures where sizeof(long) != sizeof(int)) in rgb2yuv code.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@156 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-07 16:27:47 +00:00
sinamas
53ff519f87 std::ifstream construction missing binary flag
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@155 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-07-07 00:37:12 +00:00
sinamas
e6c3f2d777 add custom sample rate support
change default buffer latency to 67 ms
don't auto-repeat buttons bound to keyboard
use enums for somewhat more robust gambattesource button setup


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@154 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-28 19:29:49 +00:00
sinamas
09f966a927 Direct3DCreate function pointer typedef needs WINAPI macro
disable page flipping dependent checkboxes in constructor to ensure 
correct start state


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@153 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-27 15:55:48 +00:00
sinamas
788e1d0ef1 store currently selected scheme as string, since it appears ModelIndex
is neither tied to the data it points to nor invalidated by changes.
enforce valid state on reject since the list of schemes may have 
changed.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@152 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-27 08:27:27 +00:00
sinamas
0ad3fd9580 use QString for videoSourceLabel passed to MainWindow constructor
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@151 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-27 06:19:33 +00:00
sinamas
761db80d31 missing string include
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@150 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-24 09:35:29 +00:00
sinamas
1c2e07c956 Add tab support to input settings dialog.
Add alternate key support to input settings dialog.
Auto-focus to next likely input box after settings key in input dialog.
Add "Play" and "State" input settings dialog tabs.
Avoid using the most convenient keys as forced menu short-cuts, set them 
as default keys in input settings dialog instead. This unfortunately 
makes the more useful shortcuts less visible, but it allows remapping 
the most convenient keyboard keys.
Avoid duplicate joystick axis "press" events by keeping a map of axis 
states.
Make sure to discard irrelevant/old joystick events.
Don't give MediaSource button events when stopped.
Allow joystick-based button events while paused by using a very 
low-frequency poll timer.
Make some of the joystick event wrapping stuff less messy.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@149 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-24 00:03:20 +00:00
sinamas
721bcaa3d1 add Play menu with Pause, Frame Step, Dec/Inc/Reset Frame Rate
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@148 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-22 19:47:18 +00:00
sinamas
8d8cbef8d5 make sure windows path arguments don't use backslashes by using
QFileInfo


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@147 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-21 17:41:51 +00:00
sinamas
e984450f7b missing includes
missing virtual destructor


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@146 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-20 11:21:03 +00:00
sinamas
a55d12f145 add save state actions to GUI menu
clean up GUI menu creation code
move GUI recent files to submenu
move state 0 OSD pos to rightmost to match kbd layout
state 1 default on ROM load
support external save state files
add number key slot selection shortcuts


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@145 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-20 07:59:18 +00:00
sinamas
b86280ae0a utilize templates for more flexible osd text printing
use grey osd text with black outline for save/load state messages


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@144 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-19 16:21:40 +00:00
sinamas
6c84775d0e add bitmap font rendering with font based on Bitstream Vera Sans
osd state n saved/loaded text
empty state osd thumbs marked with "Empty" text
adjust thumbnail interpolation weighing slightly


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@143 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-05 23:20:34 +00:00
sinamas
686e286d6a save state selection
save state osd preview snapshots
fix a few potential security holes when loading invalid state
get rid of some undefined behaviour in statesaver
always draw in rgb32, color convert afterwards, too bad for maemo/16-bit
depth users
get rid of silly c string stuff


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@142 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-05-05 01:07:25 +00:00
sinamas
3dda26e19b 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
551fbacd9d - 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
39f05a45e2 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
115e2476ad 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
e9b4561695 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
b5e5dc54df fix silly initstate ifreg regression
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@136 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-18 10:25:23 +00:00
sinamas
dc29212d85 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
40b6be8215 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
8c12664080 - 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
6c37c96d0e 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
57dbb2e710 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
6a84c2c8ab 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
8c83879e7f save savedata before loading state
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@129 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-04 06:07:32 +00:00
sinamas
401a4a404b 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
bbe37130ba 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
8a07c109f3 save state infrastructure,
clean up video timing code,
use save state for initialization and reset,
do color conversion outside filters, fast rgb32ToUyvy,
add overlooked oamdma event,
adjust subcycle irq timing (shouldn't affect anything),
various refactoring


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@126 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-03-03 11:59:46 +00:00
sinamas
f7a2477f0a 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
549874e25a 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
7c0ad10c43 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
f1c12331bb 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
464e101983 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
b0a08bd380 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
f3a6c902ff preoffset mem pointers. get rid of unused memory.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@119 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-01-31 11:36:04 +00:00
sinamas
d7e9f01a3f various oamdma accuracy. oamdma bus conflicts with cpu, ppu, cgbdma. rewritten memory read/write methods. accurate timing of ppu sprite mapping reads. fix recent cgb sprite cycles sorting slip up.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@118 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-01-31 07:43:54 +00:00
sinamas
7e6d5246da more oamdma tests
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@117 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-01-20 23:57:16 +00:00
sinamas
b93bc08711 add hwtests for oam dma, m3 cycles wo bg
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@116 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-01-16 20:44:38 +00:00
sinamas
695fd65c9d 0xFEA0-0xFEFF not writable when OAM isn't. unusable ioram bits fixes. dmg ioram startup state fixes.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@115 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2008-01-10 04:47:59 +00:00