Commit Graph

748 Commits

Author SHA1 Message Date
R. Belmont
9c0f4e6683 MIDI: Fixed several bugs and bumped the input buffer sizes [R. Belmont] 2013-01-15 14:45:36 +00:00
Robbbert
4efc1f7b05 Temp patch to fix d3d crash at start. 2013-01-15 12:30:05 +00:00
R. Belmont
520a27efd5 First pass on MIDI out support [R. Belmont] 2013-01-14 03:10:52 +00:00
R. Belmont
2f0c02a4f1 Fix compiling on PowerPC OS X (nw) 2013-01-13 21:41:04 +00:00
Ryan Holtz
4825263ebf - d3dhlsl.c: Made HLSL switchable at runtime, Ctrl+Alt+F12. [MooglyGuy] 2013-01-13 15:07:11 +00:00
R. Belmont
f6c44c6e9b MIDI core updates: [R. Belmont]
- Add MIDI in and out ports as image device types
- Add OSD calls to check for and read MIDI input
- Add MIDI in image device which reads input and converts it to a serial bitstream

nw section:
Note that the MIDI In device uses the new image device override to prevent the core from attempting to fopen() the "file" name and instead it handles open/close itself in call_load/call_unload.  This allows greater flexibilty than the hack used for sockets/ptys/named pipes where the OSD file layer has to know about them.
2013-01-13 03:48:10 +00:00
smf-
1940866c70 output of new srcclean changes that are relatively small [smf] 2013-01-11 19:43:14 +00:00
Miodrag Milanovic
0e19f641d3 Cleanups and version bump 2013-01-11 07:32:46 +00:00
Oliver Stöneberg
d61e5d5a15 fixed unitialized memory in osd_file (nw) 2013-01-09 19:12:31 +00:00
Nathan Woods
a43dcda2c2 MSVC fixes (nw) 2013-01-08 11:47:40 +00:00
Ryan Holtz
b41802d6ce 01234567890123456789012345678901234567890123456789012345678901234567890123456789
- drawd3d.c: Move default_texture creation into device_create_resources. Should
             fix intermittent crashes when alt-tabbing back to a full-screen
             instance of MAME. [MooglyGuy]
2013-01-06 00:28:22 +00:00
Ryan Holtz
3d1e0d9d65 - d3dhlsl.c: Free HLSL resources on device reset. Fixes hang when alt-tabbing
away from a fullscreen window and back. [MooglyGuy]
2013-01-05 19:02:01 +00:00
Ryan Holtz
c34900b360 - d3dhlsl.c: Clamp hlsl_prescale_x/y to a minimum of 1. Fixes crashes when using
-nomaximize switch. [MooglyGuy]
2013-01-05 17:55:42 +00:00
Oliver Stöneberg
9e3e9ff81f fixed pmmidi.c includes (fixes Visual Studio linking) (nw) 2013-01-01 21:28:49 +00:00
R. Belmont
13c3e056aa Enable compiling PortMidi (nw)
Tested on: Linux x64, Mac OS X 10.8, Windows 8 x64 w/latest toolchain for both OSD=windows and OSD=sdl.  MIDI should auto-disable on other OSes (*BSD) but there may be problems.  Works fine on Linux when set to use the system's copy of the library as well, which many distros prefer.
2013-01-01 16:58:48 +00:00
R. Belmont
ad80ff6c3f portmidi: Initial commit. [R. Belmont]
(nw: this isn't enabled to compile yet, this is just to make it easier to run the final tests on my Mac and my Windows laptop)
2013-01-01 16:11:32 +00:00
Curt Coder
9eb41bb391 2013 2013-01-01 09:00:57 +00:00
Ryan Holtz
7e652d13c5 - render.c: Added new PRIMFLAG macros pertaining to vectors, to be used by the
OSD. [MooglyGuy]

- d3dhlsl.c: Began laying the groundwork for vector post-processing, disabled
            by default. [MooglyGuy]
2012-12-31 21:29:02 +00:00
Ryan Holtz
af9ee4a4e4 [HLSL] Fixed crash when using presets. [MooglyGuy]
[HLSL] Restored old HLSL prescale behavior, with 0 being auto-detect. [MooglyGuy]
2012-12-31 17:35:24 +00:00
Nathan Woods
3aa34032cf MSVC compilation fixes (nw) 2012-12-31 11:46:37 +00:00
R. Belmont
dcff4c8618 SDL: fix "Illegal integer value for numprocessors: "auto"; reverting to auto" [R. Belmont] 2012-12-30 04:21:12 +00:00
Ryan Holtz
ae9f7ca3db (nw) Fixes HLSL bugs with Rocket Knight Adventures 2012-12-29 20:11:06 +00:00
Oliver Stöneberg
46013ad0d9 reverted bogus fix (nw) 2012-12-29 12:44:09 +00:00
Oliver Stöneberg
94824e13d7 removed unnecessary variable initialization added in last commit (nw) 2012-12-29 11:34:10 +00:00
Oliver Stöneberg
f48344c62e fixed MT#4846: make sure, that we always get a win_monitor_info* in winwindow_video_window_monitor() [Oliver Stöneberg] 2012-12-29 11:27:56 +00:00
Ryan Holtz
8624385a24 01234567890123456789012345678901234567890123456789012345678901234567890123456789
hlsl: Added bounds-checking on presets. [MooglyGuy]

hlsl: Cleaned up render target management. May provide better behavior in games
      that use multiple resolutions, e.g. tekken3 and stv. [MooglyGuy]
2012-12-29 01:05:33 +00:00
R. Belmont
5ee48d4899 SDL: Autodetect Ubuntu 12.10 and work around faulty default compiler [R. Belmont] 2012-12-28 22:14:59 +00:00
Miodrag Milanovic
4281522dfa Removed -mwindows I have added recently makes console unusable (nw) 2012-12-28 08:10:58 +00:00
Oliver Stöneberg
f00a249577 forgot to add comment in windows.mak (nw) 2012-12-28 01:14:40 +00:00
R. Belmont
8d293ac840 SDL: Work around Qt differences between Fedora and everyone else [qmc2] 2012-12-27 20:52:52 +00:00
R. Belmont
844e894976 SDL: Qt debugger support cleanup, fixed OS X crash [qmc2, R. Belmont] 2012-12-27 16:09:06 +00:00
Oliver Stöneberg
0ea68a4327 added make define MSVC_ANALYSIS to run Visual Studio code analysis (nw) 2012-12-26 13:09:43 +00:00
Miodrag Milanovic
ff3e49d66f Changed isa device cpu search, fixes -listxml (no whatsnew)
Added some addtional XT and AT bioses 
Added -mwindows flag to windows sdl build with QT
2012-12-26 12:57:49 +00:00
Miodrag Milanovic
b4da179247 Made QT debugger compiles under windows SDL build (no whatsnew) 2012-12-25 11:53:34 +00:00
R. Belmont
165cb6ba96 Whoops (nw) 2012-12-25 04:03:04 +00:00
R. Belmont
a9116a7973 SDL: Experimental Qt-based debugger [Andrew Gardner, R. Belmont] 2012-12-25 03:51:20 +00:00
Nathan Woods
a21d4c2470 MSVC compilation fixes. 2012-12-22 17:13:18 +00:00
R. Belmont
c11827943d Add MESS-related manpages I missed (nw) 2012-12-20 00:56:47 +00:00
Oliver Stöneberg
2935ac9180 enabled multi-threading by default on Windows 2012-12-18 16:03:57 +00:00
Oliver Stöneberg
07dcb5c0a4 vconv: bumped Visual Studio warning level to 4 and disabled most of the new warnings (for now) / added translation of -Wno-sign-compare 2012-12-17 14:44:51 +00:00
Miodrag Milanovic
83c7f8c03c typo fix from qmc2 (no whatsnew) 2012-12-10 12:26:49 +00:00
Nathan Woods
c8b9a2095e Profiler rewrite; simplified, streamlined and less overhead. 2012-12-09 23:11:14 +00:00
R. Belmont
1de64f53fe SDL: Revise *IX man pages [wallyweek] 2012-12-06 04:39:12 +00:00
smf-
76b18952fa remove redundant linking with dinput8.lib, it's conditionally added a few lines later. 2012-10-11 08:38:30 +00:00
Wilbert Pol
6dca510a96 OSX compile fixes (nw) 2012-09-19 21:11:39 +00:00
Aaron Giles
974da4d5b5 Fix MSVC compilation. 2012-09-18 04:11:19 +00:00
Oliver Stöneberg
6bc58a69ab (MESS) fixed resource data of Windows executable [Oliver Stöneberg] 2012-09-17 19:49:37 +00:00
Miodrag Milanovic
e25c13f253 Clean-ups and version bump
note: hoarded dump removed too from coco_cart.xml, this will not be tolerated
2012-09-17 06:49:13 +00:00
Aaron Giles
1a30184903 Final round of struct/union/enum normalization. 2012-09-16 05:24:30 +00:00
Aaron Giles
91f928d6cd Enum and union normalization. 2012-09-16 03:06:55 +00:00
Aaron Giles
ab97dc30ef First pass at modernizing struct definitions. 2012-09-15 21:47:30 +00:00
R. Belmont
80e6e662b1 SDL: don't enable XInput by default (nw) 2012-09-15 15:44:59 +00:00
Oliver Stöneberg
9ef51b6bcd added missing \n to some fatalerror() calls (no whatsnew) 2012-09-07 19:46:27 +00:00
Curt Coder
518205f199 Fixed default SDL OSX UI toggle key name. [Curt Coder] 2012-08-29 18:37:08 +00:00
Scott Stone
f22b57d092 Fixed for an SDL sound bug surrounding use of -speed and pausing frequently causing corrupt sound. [Antonio Giner] 2012-08-29 17:28:47 +00:00
Couriersud
6c4f9a0d65 Added gcc-4[567]-generic entries to sdl.mak to select gcc with DISTRO= switch. 2012-08-20 19:19:15 +00:00
Oliver Stöneberg
06ba8ecf43 added missing \n to some fatalerror() calls (no whatsnew) 2012-08-18 11:25:01 +00:00
Oliver Stöneberg
aab3cad57f fixed debugger window to just use fixed-pitch font and removed fallback since CreateFont will still return a font based on other characteristics when the face was not found (no whatsnew) 2012-08-18 10:01:13 +00:00
Miodrag Milanovic
10294b81ab Made UI mouse cursor optional (default is off for now), in games with clickable artwork cursor is visible, application is not taking mouse control anymore (no whatsnew) 2012-08-17 13:42:21 +00:00
Miodrag Milanovic
b2b8a48438 Added internal mouse cursor visible in menus and when clickable artwork is used [Miodrag Milanovic] 2012-08-15 14:39:48 +00:00
R. Belmont
71373ae179 SDL: Fix -prescale option for SDL builds [Matthias Reichl] 2012-08-11 12:06:44 +00:00
Oliver Stöneberg
765271cb05 removed redundant interlocked function wrappers from Windows code (no whatsnew) 2012-08-07 13:05:00 +00:00
Miodrag Milanovic
19179ec9b6 Clean-ups and version bump 2012-07-30 07:55:43 +00:00
Oliver Stöneberg
97dbb9484f removed unnecessary strlen() usage (no whatsnew) 2012-07-27 15:37:39 +00:00
Oliver Stöneberg
5864158d33 allow "windowname" in win_create_window_ex_utf8() to be NULL to match behavior of CreateWindowEx() (no whatsnew) 2012-07-27 15:24:08 +00:00
R. Belmont
b987e8d872 SDL: more compile fixes (nw) 2012-07-26 22:10:32 +00:00
R. Belmont
a93ee65b41 Fix some non-Windows compiles (nw) 2012-07-26 21:23:51 +00:00
Oliver Stöneberg
eb937ea06a fixed version check in windows.mak (no whatsnew) 2012-07-26 19:36:30 +00:00
R. Belmont
351b3a9d8e SDL: some compile fixes for OS X and Windows (nw) 2012-07-26 13:32:29 +00:00
R. Belmont
beba639471 SDL: Use XInput to allow multiple lightguns on Linux/*BSD targets. [Markus Rathgeb, based on a patch by SpritesMods.com] 2012-07-25 01:32:48 +00:00
Miodrag Milanovic
ed9afac60c Clean-ups and version bump 2012-07-15 09:28:52 +00:00
R. Belmont
b3dec1e4f7 SDL: Greatly improve drawing speed of GTK+ debugger windows [Fabrice Bellet] 2012-07-13 01:46:26 +00:00
Miodrag Milanovic
869a0ab7af fix for profiler memory leaks mtbug #04094 (no whatsnew) 2012-07-09 17:02:00 +00:00
R. Belmont
994de882e9 SDL: Clean up GCC 4.7 test so it's the same path on all targets (nw) 2012-06-19 01:25:24 +00:00
Miodrag Milanovic
85cda51486 Make it compile on windows mingw 4.7.x (no whatsnew) 2012-06-18 16:06:11 +00:00
R. Belmont
72e6e33b4c SDL: Support newer Linux distros using GCC 4.7 [R. Belmont] 2012-06-15 02:23:19 +00:00
Michaël Banaan Ananas
d82cead34c fix mistake by me a while ago: sr(syncrefresh) clashed with emuopts sr(samplerate) 2012-06-10 21:24:15 +00:00
smf-
d52292616e fixed building with Visual Studio 11 RC 2012-06-02 22:31:32 +00:00
R. Belmont
8dac2bd9e5 SDL: More OS/2 fixes [K.O. Myung-Hun] 2012-05-31 13:26:39 +00:00
R. Belmont
144234d9f6 SDL: Preliminary Haiku OS support [PulkoMandy] 2012-05-28 18:15:02 +00:00
R. Belmont
821f78f286 SDL: fix for OS/2 compile [K.O. Myung-Hun] 2012-05-27 16:31:22 +00:00
Miodrag Milanovic
932910a75e fixed some "comparison is always true/false" warnings reported by clang by Firewave
in timer.c I have commented not removed lines that are always false
2012-05-20 11:43:57 +00:00
Miodrag Milanovic
63362efd37 fix for -video ddraw causing crash on 16bit video output (no whatsnew) 2012-05-19 17:06:03 +00:00
Miodrag Milanovic
206d7d92c6 Fixed display of icon in windows (no whatsnew) 2012-05-15 13:20:26 +00:00
Miodrag Milanovic
2139f1b17d end of line was missing (nw) 2012-05-15 12:29:40 +00:00
Miodrag Milanovic
eb43dbb7a3 MAME windows executable gets it's own icon (no whatsnew) 2012-05-15 12:21:20 +00:00
smf-
a7229679c7 fixes for building with visual studio 11 beta. 2012-05-10 19:02:23 +00:00
R. Belmont
f03200ab01 Don't optimize tms57002 on OS X PowerPC builds [Couriersud] 2012-05-08 01:26:33 +00:00
Miodrag Milanovic
0238c610f7 Clean-ups and version bump 2012-05-07 06:57:50 +00:00
Miodrag Milanovic
5616c1e9d5 removed -static for sdl windows build (no whatsnew) 2012-05-04 06:18:42 +00:00
Miodrag Milanovic
6231165166 -static is not needed anymore for latest tools (no whatsnew) 2012-05-03 16:45:36 +00:00
Miodrag Milanovic
36ea482ace Sync with MESS (no whatsnew) 2012-05-03 09:16:42 +00:00
Aaron Giles
2a88e54278 ioport.c C++ conversion. Mostly internal changes, with no
intended differences from previous behavior. For drivers,
the main change is that input_port_read() no longer exists.
Instead, the port must be fetched from the appropriate device,
and then read() is called.

For member functions, this is actually simpler/cleaner:

  value = ioport("tag")->read()

For legacy functions which have a driver_data state, it goes:

  value = state->ioport("tag")->read()

For other legacy functions, they need to fetch the root device:

  value = machine.root_device().ioport("tag")->read()

The other big change for drivers is that IPT_VBLANK is gone.
Instead, it has been replaced by a device line callback on the
screen device. There's a new macro PORT_VBLANK("tag") which
automatically points things to the right spot.

Here's a set of imperfect search & replace strings to convert
the input_port_read calls and fix up IPT_VBLANK:

input_port_read( *\( *)(machine\(\)) *, *([^)]+ *\))
ioport\1\3->read\(\)

input_port_read( *\( *)(.*machine[()]*) *, *([^)]+ *\))
\2\.root_device\(\)\.ioport\1\3->read\(\)

(state = .*driver_data[^}]+)space->machine\(\)\.root_device\(\)\.
\1state->

(state = .*driver_data[^}]+)device->machine\(\)\.root_device\(\)\.
\1state->

input_port_read_safe( *\( *)(machine\(\)) *, *([^,]+), *([^)]+\))
ioport\1\3->read_safe\(\4\)

IPT_VBLANK( *\))
IPT_CUSTOM\1 PORT_VBLANK("screen")
2012-05-03 09:00:08 +00:00
Miodrag Milanovic
4296762a20 Killed unicows (no whatsnew) 2012-04-28 07:10:04 +00:00
Miodrag Milanovic
708eb8bb6f Same change for sdl build on windows (no whatsnew) 2012-04-24 13:11:12 +00:00
Miodrag Milanovic
b9e61fd29b Fix linking for mingw GCC 4.6.3 and upper using libwinpthread (no whatsnew) 2012-04-24 12:24:57 +00:00
Angelo Salese
ded30e907e Clean-ups and version bump 2012-04-22 14:10:44 +00:00
Aaron Giles
9091010c87 Broke dependency between mcr68 and mcr by creating
sound devices for each of the Midway 8-bit sound
boards. This will also aid in eventually hooking them
up to pinballs.

Enhanced the mixer interface support to allow for
more than one output line. To use this you need to
use the MCFG_MIXER_ROUTE macro instead of 
MCFG_SOUND_ROUTE so that the mixer output index can
be specified. See midway_ssio_device for an example.
2012-04-17 14:58:05 +00:00
Aaron Giles
7d27b8c9ff Hooray for templates. 2012-04-12 07:35:57 +00:00
Miodrag Milanovic
986f1ef77d Sync with MESS (no whatsnew) 2012-04-11 14:48:01 +00:00
R. Belmont
4243eab5c4 SDL: fix build on non-OS X targets (nw) 2012-04-09 22:47:42 +00:00
Wilbert Pol
6711559e87 SDL: Got rid of some code duplication between the _unix and _macosx implementations for sdlptty and sdlmisc. (nw) 2012-04-09 19:55:43 +00:00
R. Belmont
f7a94cda02 SDL: Fix formatting of chdman man page [wallyweek] 2012-03-29 21:50:36 +00:00
Michaël Banaan Ananas
67364cfe81 Change DirectInput joystick acquisition method to be non exclusive. [bdam] 2012-03-25 17:55:05 +00:00
R. Belmont
58eb388fd5 Update SDL man pages. chdman has formatting glitches but at least matches the binary we ship. [wallyweek, R. Belmont] 2012-03-25 02:27:58 +00:00
Wilbert Pol
e3cf71776b Fixed typo (nw) 2012-03-07 19:46:01 +00:00
R. Belmont
11a3efc873 abort() is intended in this instance (nw) 2012-02-29 14:12:38 +00:00
Miodrag Milanovic
bef76826c9 fixed several Visual Studio compiler warnings and 64-bit libflac compilation by Firewave, and idectrl change from Carl (no whatsnew) 2012-02-29 09:13:22 +00:00
R. Belmont
a0b7883fa3 SDL: support unofficial (not in the OSD class) num_processors API used by chdman. Allows chdman to use multiple cores/processors on non-Windows. [R. Belmont] 2012-02-26 22:55:18 +00:00
Angelo Salese
cf4b58b6f6 Clean-ups and version bump 2012-02-19 15:23:23 +00:00
Miodrag Milanovic
4ba8461f7c Added windows implementation of pseudo tty access functions over pipes [Carl] 2012-02-19 08:50:03 +00:00
Aaron Giles
f0823886a6 Major CHD/chdman update. The CHD version number has been increased
from 4 to 5. This means any diff CHDs will no longer work. If you
absolutely need to keep the data for any existing ones you have,
find both the diff CHD and the original CHD for the game in question 
and upgrade using these commands:

  rename diff\game.dif diff\game-old.dif
  chdman copy -i diff\game-old.dif -ip roms\game.chd -o diff\game.dif -op roms\game.chd -c none

Specifics regarding this change:

Defined a new CHD version 5. New features/behaviors of this version:
  - support for up to 4 codecs; each block can use 1 of the 4
  - new LZMA codec, which tends to do better than zlib overall
  - new FLAC codec, primarily used for CDs (but can be applied anywhere)
  - upgraded AVHuff codec now uses FLAC for encoding audio
  - new Huffman codec, used to catch more nearly-uncompressable blocks
  - compressed CHDs now use a compressed map for significant savings
  - CHDs now are aware of a "unit" size; each hunk holds 1 or more units
     (in general units map to sectors for hard disks/CDs)
  - diff'ing against a parent now diffs at the unit level, greatly
     improving compression

Rewrote and modernized chd.c. CHD versions prior to 3 are unsupported,
and version 3/4 CHDs are only supported for reading. Creating a new
CHD now leaves the file open.  Added methods to read and write at the 
unit and byte level, removing the need to handle this manually. Added
metadata access methods that pass astrings and dynamic_buffers to
simplify the interfaces. A companion class chd_compressor now
implements full multithreaded compression, analyzing and compressing
multiple hunks independently in parallel. Split the codec 
implementations out into a separate file chdcodec.*

Updated harddisk.c and cdrom.c to rely on the caching/byte-level read/
write capabilities of the chd_file class. cdrom.c (and chdman) now also 
pad CDs to 4-frame boundaries instead of hunk boundaries, ensuring that
the same SHA1 hashes are produced regardless of the hunk size.

Rewrote chdman.exe entirely, switching from positional parameters to
proper options. Use "chdman help" to get a list of commands, and
"chdman help <command>" to get help for any particular command. Many 
redundant commands were removed now that additional flexibility is
available. Some basic mappings:

  Old: chdman -createblankhd <out.chd> <cyls> <heads> <secs>
  New: chdman createhd -o <out.chd> -chs <cyls>,<heads>,<secs>

  Old: chdman -createuncomphd <in.raw> <out.chd> ....
  New: chdman createhd -i <in.raw> -o <out.chd> -c none ....

  Old: chdman -verifyfix <in.chd>
  New: chdman verify -i <in.chd> -f

  Old: chdman -merge <parent.chd> <diff.chd> <out.chd>
  New: chdman copy -i <diff.chd> -ip <parent.chd> -o <out.chd>

  Old: chdman -diff <parent.chd> <compare.chd> <diff.chd>
  New: chdman copy -i <compare.chd> -o <diff.chd> -op <parent.chd>

  Old: chdman -update <in.chd> <out.chd>
  New: chdman copy -i <in.chd> -o <out.chd>

Added new core file coretmpl.h to hold core template classes. For now
just one class, dynamic_array<> is defined, which acts like an array
of a given object but which can be appended to and/or resized. Also
defines dynamic_buffer as dynamic_array<UINT8> for holding an 
arbitrary buffer of bytes. Expect to see these used a lot.

Added new core helper hashing.c/.h which defines classes for each of
the common hashing methods and creator classes to wrap the 
computation of these hashes. A future work item is to reimplement
the core emulator hashing code using these.

Split bit buffer helpers out into C++ classes and into their own
public header in bitstream.h.

Updated huffman.c/.h to C++, and changed the interface to make it
more flexible to use in nonstandard ways. Also added huffman compression
of the static tree for slightly better compression rates.

Created flac.c/.h as simplified C++ wrappers around the FLAC interface.
A future work item is to convert the samples sound device to a modern
device and leverage this for reading FLAC files.

Renamed avcomp.* to avhuff.*, updated to C++, and added support for
FLAC as the audio encoding mechanism. The old huffman audio is still
supported for decode only.

Added a variant of core_fload that loads to a dynamic_buffer.

Tweaked winwork.c a bit to not limit the maximum number of processors
unless the work queue was created with the WORK_QUEUE_FLAG_HIGH_FREQ
option. Further adjustments here are likely going to be necessary.

Fixed bug in aviio.c which caused errors when reading some AVI files.
2012-02-16 09:47:18 +00:00
Couriersud
ebe89a47d3 Fixed testkeys to work with SDL2.0. Keymaps can now contain SDL1.3 and SDL2.0 mappings. Updated km-de.txt as an example. [Couriersud] 2012-02-16 01:38:13 +00:00
Couriersud
19c3217408 Added support for (track)balls to osd/sdl. [Couriersud]
To test it, I used my Logitech Trackball (normally a mouse) and configured it as a joystick.

Prerequisites:

- Locate your linux input device for the trackball. In my case that's /dev/input/event3
- "sudo chmod a+r /dev/input/event3"
- "export SDL_JOYSTICK_DEVICE=/dev/input/event3"

This forces sdl to recognize the trackball as a input device.

-mame64 missile -nomouse -w

Configure the trackball axis. Make sure the mouse pointer is outside the window and window still has keyboard focus - most modern window manager should support this. 

Quit and restart with

-mame64 missile -mouse -now

to hide the mouse. Voila. Works.
2012-02-15 21:40:35 +00:00
R. Belmont
634199ff6e (nw) 2012-02-13 23:38:49 +00:00
R. Belmont
0419f03478 (nw) 2012-02-13 23:23:41 +00:00
Couriersud
5344166555 updated sdl os-core to compile against stock SDL-2.0 [couriersud].
- The SDL team has moved from 1.3 to 2.0. At the same time, changes were made to allow SDL1.2 and SDL2.0 to coexist. All SDL2.0 include files are now in /usr/include/SDL2.
- Added sdlinc.h to avoid having tons of #ifdef .. #include in the code.
- Scalemode is no longer a per-window setting
- Fixed a bug in YUV rendering.
- Use SDL_GetClipboard (SDL2.0)
- Updated README_SDL20.txt

Currently, SDL 2.0 is only supported on *nix. Volunteers welcome.
2012-02-12 20:59:24 +00:00
Michaël Banaan Ananas
f84735dcef cmdline option shortcuts for:
waitvsync -> vs
syncrefresh -> sr
2012-02-10 19:26:14 +00:00
R. Belmont
d58200c58c SDL: don't show misleading message for .BDF UI fonts [R. Belmont, The Flying Ape] 2012-01-29 02:32:28 +00:00
Miodrag Milanovic
41324054a1 Fixed pcap network device search [Carl] 2012-01-25 09:56:25 +00:00
Aaron Giles
ed0207f126 Move devices into a proper hierarchy and handle naming
and paths consistently for devices, I/O ports, memory
regions, memory banks, and memory shares. [Aaron Giles]

NOTE: there are likely regressions lurking here, mostly
due to devices not being properly found. I have temporarily
added more logging to -verbose to help understand what's
going on. Please let me know ASAP if anything that is being
actively worked on got broken.

As before, the driver device is the root device and all 
other devices are owned by it. Previously all devices
were kept in a single master list, and the hierarchy was
purely logical. With this change, each device owns its
own list of subdevices, and the hierarchy is explicitly
manifest. This means when a device is removed, all of its
subdevices are automatically removed as well.

A side effect of this is that walking the device list is
no longer simple. To address this, a new set of iterator
classes is provided, which walks the device tree in a depth
first manner. There is a general device_iterator class for
walking all devices, plus templates for a device_type_iterator
and a device_interface_iterator which are used to build
iterators for identifying only devices of a given type or
with a given interface. Typedefs for commonly-used cases
(e.g., screen_device_iterator, memory_interface_iterator)
are provided. Iterators can also provide counts, and can
perform indexed lookups.

All device name lookups are now done relative to another 
device. The maching_config and running_machine classes now
have a root_device() method to get the root of the hierarchy. 
The  existing machine->device("name") is now equivalent to
machine->root_device().subdevice("name").

A proper and normalized device path structure is now
supported. Device names that start with a colon are
treated as absolute paths from the root device. Device
names can also use a caret (^) to refer to the owning
device. Querying the device's tag() returns the device's
full path from the root. A new method basetag() returns
just the final tag.

The new pathing system is built on top of the 
device_t::subtag() method, so anyone using that will 
automatically support the new pathing rules. Each device
has its own internal map to cache successful lookups so
that subsequent lookups should be very fast.

Updated every place I could find that referenced devices,
memory regions, I/O ports, memory banks and memory shares
to leverage subtag/subdevice (or siblingtag/siblingdevice
which are built on top).

Removed the device_list class, as it doesn't apply any
more. Moved some of its methods into running_machine
instead.

Simplified the device callback system since the new 
pathing can describe all of the special-case devices that
were previously handled manually.

Changed the core output function callbacks to be delegates.

Completely rewrote the validity checking mechanism. The
validity checker is now a proper C++ class, and temporarily
takes over the error and warning outputs. All errors and 
warnings are collected during a session, and then output in
a consistent manner, with an explicit driver and source file
listed for each one, as well as additional device and/or
I/O port contexts where appropriate. Validity checkers 
should no longer explicitly output this information, just
the error, assuming that the context is provided.

Rewrote the software_list_device as a modern device, getting
rid of the software_list_config abstraction and simplifying
things.

Changed the way FLAC compiles so that it works like other
external libraries, and also compiles successfully for MSVC
builds.
2012-01-24 20:18:55 +00:00
R. Belmont
87c3d68343 Changes for GCC 4.7 compatibility [Belegdol] 2012-01-21 20:39:52 +00:00
R. Belmont
e981a9771e fix 64-bit Intel OS X compile w/latest Xcode (nw) 2012-01-16 16:52:54 +00:00
Angelo Salese
7b631e4c5b Clean-ups and version bump 2012-01-15 21:40:54 +00:00
Aaron Giles
e4238fb654 Major bitmap-related changes throughout the system. There are
almost certainly some regressions lurking. Let me know if
something seems busted.

Bitmaps are now strongly typed based on format. bitmap_t still
exists as an abstract base class, but it is almost never used.
Instead, format-specific bitmap classes are provided:

   bitmap_ind8 == 8bpp indexed
   bitmap_ind16 == 16bpp indexed
   bitmap_ind32 == 32bpp indexed
   bitmap_ind64 == 64bpp indexed
   bitmap_rgb32 == 32bpp RGB
   bitmap_argb32 == 32bpp ARGB
   bitmap_yuy16 == 16bpp YUY

For each format, a generic pix() method is provided which
references pixels of the correct type. The old pix8/pix16/pix32/
pix64 methods still exist in the short term, but the only one
available is the one that matches the bitmap's pixel size. Note
also that the old RGB15 format bitmaps are no longer supported
at all.

Converted model1, megadriv, and stv drivers away from the RGB15
format bitmaps.

New auto_bitmap_<type>_alloc() macros are provided for allocating
the appropriate type of bitmap.

Screen update functions now must specify the correct bitmap type
as their input parameters. For static update functions the
SCREEN_UPDATE macro is now replaced with SCREEN_UPDATE_RGB32 and
SCREEN_UPDATE_IND16 macros. All existing drivers have been 
updated to use the correct macros. 

Screen update functions are now required for all screens; there
is no longer any default behavior of copying a "default" bitmap
to the screen (in fact the default bitmap has been deprecated).
Use one of the following to specify your screen_update callback:

   MCFG_SCREEN_UPDATE_STATIC(name) - static functions
   MCFG_SCREEN_UPDATE_DRIVER(class, func) - driver members
   MCFG_SCREEN_UPDATE_DEVICE(tag, class, func) - device members

Because the target bitmap format can now be deduced from the
screen update function itself, the MCFG_SCREEN_FORMAT macro is
no longer necessary, and has been removed. If you specify a
screen update callback that takes a bitmap_ind16, then the screen
will be configured to use a 16bpp indexed bitmap, and if you
specify a callback that takes a bitmap_rgb32, then a 32bpp RGB
bitmap will be provided.

Extended the bitmap classes to support wrapping a subregion of
another bitmap, and cleaner allocation/resetting. The preferred
use of bitmaps now is to define them directly in drivers/devices
and use allocate() or wrap() to set them up, rather than 
allocating them via auto_bitmap_*_alloc().

Several common devices needed overhauls or changes as a result
of the above changes:

 * Reorganized the laserdisc base driver and all the laserdisc 
    drivers as modern C++ devices, cleaning the code up 
    considerably. Merged ldsound device into the laserdsc
    device since modern devices are flexible enough to handle
    it.

 * Reorganized the v9938 device as a modern C++ device. Removed
    v9938mod.c in favor of template functions in v9938.c directly.

 * Added independent ind16 and rgb32 callbacks for TMS340x0 devices.

 * All video devices are now hard-coded to either ind16 or rgb32
    bitmaps. The most notable is the mc6845 which is rgb32, and
    required changes to a number of consumers.

 * Added screen_update methods to most video devices so they can be
    directly called via MCFG_SCREEN_UPDATE_DEVICE instead of creating
    tons of stub functions.
2012-01-12 21:19:49 +00:00
R. Belmont
b4ab914f21 OS/2 updates [KO Myung-Hun] 2012-01-05 03:23:51 +00:00
Phil Bennett
2187468105 Revert r14902 for sdlmain.c. Fixes compilation on Intel OS X. 2012-01-03 09:50:40 +00:00
Aaron Giles
64f1231c63 Removed old C-based interface to astrings. astring exists only as
a class now. Updated all stragglers (mostly tools) to use the class
form. [Aaron Giles]
2012-01-03 00:21:13 +00:00
R. Belmont
0e7eaf5d24 SDL stopped compiling again. Imagine that! (nw) 2012-01-02 06:36:58 +00:00
Aaron Giles
80cd316a2a Bulk conversion of bitmap_t * to bitmap_t & . With this change the
parameters for the global SCREEN_UPDATE callback match the parameters
for the driver_device version. Added allocate() and deallocate()
methods to bitmap_t to permit cleaner handling of bitmaps in drivers
and modern devices. [Aaron Giles]
2012-01-02 04:59:11 +00:00
R. Belmont
c8680b9ca3 (nw) 2011-12-31 23:02:03 +00:00
R. Belmont
fcc664268b Et tu, Aaron? (nw) 2011-12-31 23:00:08 +00:00
Wilbert Pol
8ba7ddeec6 Fix OSX compile.
RB: Please verify if this fix is ok with you.
2011-12-31 11:58:49 +00:00
Aaron Giles
9cae38e0d8 Converted bitmap_t and rectangle into proper classes. Replaced BITMAP_ADDR*
macros with bitmap->pix* functions, and moved bitmap_fill() to bitmap->fill()
among other similar changes. Bitmap fields now only available via accessors.
Replaced sect_rect with &= and union_rect with |= operators for rectangle
classes. Some general cleanup as a result of these changes. [Aaron Giles]
2011-12-31 07:52:26 +00:00
Angelo Salese
7e812d10d3 Clean-ups and version bump 2011-12-24 21:49:38 +00:00
Miodrag Milanovic
a2cf6501ea less ugly way to silence gcc 4.6 (no whatsnew) 2011-12-15 14:10:46 +00:00
Miodrag Milanovic
f23a3ef001 Added GCC check in windows.mak and win32 part of sdl.mak and also did silence of gcc 4.6 in win32 specific video.c (no whatsnew) 2011-12-15 08:17:18 +00:00
Angelo Salese
f0649b4e22 cleanups and version bump 2011-12-14 21:33:51 +00:00
Miodrag Milanovic
6e79bb2629 Sync with MESS all credited there (no whatsnew) 2011-12-12 14:20:12 +00:00
Miodrag Milanovic
72212fbbba Handling error where filenames are too long [Chad] 2011-12-07 07:54:47 +00:00
Scott Stone
5bceba7caa Moved a condition check (tex->d3dtex == tex->d3dfinaltex) to happen before one of them was set to NULL (tex->d3dfinaltex). Fixes MT Bug #4538. [Antonio Giner] 2011-11-29 19:20:25 +00:00
Scott Stone
74deaabe33 This change makes sure that the watchdog message will be displayed in case other messages are also waiting to be displayed. Useful in regression testing where such messages were not being displayed in some cases. (nw) 2011-11-27 14:46:34 +00:00
Angelo Salese
9f8125a24e Clean-ups and version bump 2011-11-27 14:06:49 +00:00
Aaron Giles
4a3512c756 Fix obvious use-after-free error in device_delete().
Remove explicit freeing of HLSL shadow_texture, since it is allocated
by texture_create() which does its own tracking and freeing.
2011-11-27 04:58:47 +00:00
R. Belmont
d5581057e1 (nw) 2011-11-22 14:21:24 +00:00
R. Belmont
0e513db597 (nw) 2011-11-22 13:14:23 +00:00
Miodrag Milanovic
98c917e0a1 Fixed memory leaks in networking, used core functions for allocating memory, fix sdl win32 building with network enabled (no whatsnew) 2011-11-22 11:25:14 +00:00
Miodrag Milanovic
6aadd7d787 Sync with MESS, also placed back sdlmain change since it proved working on BSD (no whatsnew) 2011-11-22 09:07:58 +00:00
Miodrag Milanovic
43245e3777 Fixed compile warning with 4.6.2 (no whatsnew) 2011-11-21 12:41:14 +00:00
R. Belmont
1ad9d735c7 Various SDL netdev fixes (nw) 2011-11-21 02:43:59 +00:00