Commit Graph

2537 Commits

Author SHA1 Message Date
Jezze
ecf1e166fc Fixed several small issues in HLSL/BGFX
* fixed target texture dimension when -intoverscan is used (this fixes the appereance of scanline and shadow mask)
* added target_scale and screen_count uniforms
* rounded corners now remain aligned with screen bounds when -intoverscan is used (single screen only)
2016-09-28 15:30:43 +02:00
Nathan Woods
69f23d3d84 Changed win_get_window_text_utf8() to return std::string
This eliminated an unnecessary conversion step.

Also, I have no idea what this WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) stuff is; it is hard to understand how it could possibly be correct because it ignores the 'window' parameter
2016-09-25 22:22:18 -04:00
Vas Crabb
33b2c73395 srcclean (nw) 2016-09-26 04:51:59 +10:00
Brad Hughes
31a9c62d1f Merge pull request #1405 from tverona1/master
Adding support for stable controller id's
2016-09-20 17:54:34 -04:00
Tomer Verona
845b36dae2 Adding id() property to input_device
This change adds id() property to input_device, which represents the
unique device id. This allows the osd layer when creating a device to
pass a friendly display name along with a unique identifier.

Currently the device id is only used to map a physical controller device
to controller id, but can be used more generally in the future. For raw
input devices, we use the full raw input name as the device id. For all
other devices, we fall back to device name as the device id. The
"uniqueness" of the device id is not currently enforced in code.
2016-09-20 12:19:58 -07:00
Brad Hughes
026487927f Fix compile for DirectWrite font provider and make it compile with normal windows build 2016-09-16 20:06:30 -04:00
Brad Hughes
bf52d11826 Convert OSD monitor info to modules plus add DXGI implementation 2016-09-14 08:32:05 -04:00
Tomer Verona
2bd18d5fea Support for configuring device to conrtoller id
This change adds support for configuring device to conrtoller id. This
allows for stable controller ids even if USB devices are plugged /
unplugged, system is rebooted, etc.

See documentation for additional context.
2016-09-12 18:35:36 -07:00
Brad Hughes
db54570694 Each mouse should track its own double-click status (nw) 2016-09-07 11:37:32 -04:00
Miodrag Milanovic
9a8964d5d0 Fix build (nw) 2016-09-03 13:53:44 +02:00
Miodrag Milanovic
d193abb0ad Update BGFX and BX packages and update MAME code to support new API (nw)
Generated missing shaders (nw)
2016-09-03 13:30:42 +02:00
Brad Hughes
5281612e2a Partially fix SDL joysticks with same name
Fixes #1334
2016-08-31 18:01:53 -04:00
Vas Crabb
c960435d3e srcclean and translation regeneration 2016-08-29 02:02:04 +10:00
Miodrag Milanovic
85f7413a69 Cleanup for VS2015 build (nw) 2016-08-28 11:58:12 +02:00
Brad Hughes
9af893666a Warp mode for relative mouse on OSX SDL 2.0.4
Fixes #1232
2016-08-27 14:23:34 -04:00
Miodrag Milanovic
62fe8b8980 some C++14 features are not supported by VS2013. VS2015 is free for home use so no need for legacy support (nw) 2016-08-27 11:15:38 +02:00
mahlemiut
cf8060d762 debugimgui: added very crude create image dialog 2016-08-25 20:14:14 +12:00
Brad Hughes
ab6bca008d Put back accidentally replaced conditional compile directive (nw) 2016-08-22 18:19:52 -04:00
Brad Hughes
f4b5092203 cleanup missed x11 input module (nw) 2016-08-22 18:16:52 -04:00
Brad Hughes
7d3ce203b5 osd input code cleanup (nw) 2016-08-22 15:02:56 -04:00
Nathan Woods
db53f51ffc Now reporting Windows ERROR_INVALID_NAME as osd_file::error::NOT_FOUND 2016-08-19 08:23:56 -04:00
Brad Hughes
6b83b0dbee Minor XAudio2 tweak to not always submit buffers if not needed (nw) 2016-08-17 23:40:50 -04:00
mahlemiut
8af56d841a debugimgui: added images menu, with crude file select dialog [Barry Rodewald] 2016-08-16 21:34:48 +12:00
Antonio Giner
9f21eabe21 Try to fix audio delay regression caused when fixing -refreshspeed for
-sound xaudio2
2016-08-15 00:02:26 +02:00
Vas Crabb
a2b99f8149 Attempt to fix mouse state on startup in SDL builds by initialising members 2016-08-14 13:15:54 +10:00
Jezze
7dc76d6501 - already fixed scanline issue also applied for swapped orientation (nw) 2016-08-13 20:30:56 +02:00
Antonio Giner
30cf980dd6 Fix audio distortion with -refreshspeed and -sound xaudio2 (MT 06199) 2016-08-11 14:07:51 +02:00
AJR
7835458e51 Remap "P1 Mahjong Score" to / key for OS X 2016-08-09 21:58:01 -04:00
R. Belmont
b25aca6177 Merge pull request #1179 from Pitou1/master
Patch to fix the Gun#2 not working in Mame, please refer to Bug id 61…
2016-08-02 14:06:35 -04:00
Vas Crabb
8e07fb8117 Fix UTF-16 encode, pass UTF-16 to Windows character drawing (unfortunately still no nice speaker icon) 2016-08-02 18:24:14 +10:00
Patrick Lessard
87a73f6f51 Patch to fix the Gun#2 not working in Mame, please refer to Bug id 6185 on Mametesters. 2016-08-02 00:18:36 -04:00
Vas Crabb
f04a3f1b9d Fix Qt debugger 2016-08-01 20:56:38 +10:00
Vas Crabb
15e7be7ac8 Turn image init/validate into scoped enums to avoid accidental casts to/from integer and boolean types
The image error should also be turned into a scoped enum - the menus were assuming it was the same thing as an init result
2016-08-01 18:47:22 +10:00
Miodrag Milanovic
6f5e223853 for bool type use true and false (nw) 2016-07-31 20:02:56 +02:00
Vas Crabb
0ceae26bb4 patch up on OSX 2016-08-01 01:37:39 +10:00
Vas Crabb
a0ce6c3b37 fix after pass through the diff 2016-08-01 01:20:03 +10:00
Miodrag Milanovic
f127621e13 made constexprs lower case and used constexpr for returning input value as well for rest of defines in osdcomm.h (nw) 2016-07-31 16:47:26 +02:00
Miodrag Milanovic
d20fa27c1b fix vs2015 build (nw) 2016-07-31 16:13:12 +02:00
Vas Crabb
6bf9f2fd9c macros should be turned into constexpr or they can't be used in many situations they were previously use in
the silly _partialNN functions are necessary because MSVC doesn't support C++14 properly
2016-07-31 23:50:41 +10:00
Miodrag Milanovic
185f5059fb algorithm-> utility where appropriate, fix imgtool (nw) 2016-07-31 15:37:37 +02:00
Miodrag Milanovic
2a87e99b21 fix osx compile (nw) 2016-07-31 15:24:28 +02:00
Miodrag Milanovic
9667c6a8cc std::min and std:max instead of MIN and MAX, also some more macros converted to inline functions (nw) 2016-07-31 14:41:02 +02:00
Miodrag Milanovic
4887ce1844 Cleanups and version bump 2016-07-27 09:26:22 +02:00
Nathan Woods
23175a3091 Using decltype() and removing +1/-1 "dance" 2016-07-25 07:57:54 -04:00
Nathan Woods
4a9e9742fd Fixed off by one issue and other cleanups requested by Vas 2016-07-25 07:49:26 -04:00
Nathan Woods
ab73291e47 Changed strconv.[cpp|h] functions to return their results as std::string and std::wstring 2016-07-24 22:55:00 -04:00
Miodrag Milanovic
d6179859ad Fix order of evaluation making imgui debugger not fail on starting without driver selected (nw) 2016-07-23 11:26:09 +02:00
therealmogminer@gmail.com
1cf1d00b7a Get sun4_40 happy with SCSI 2016-07-22 03:06:42 +02:00
Giuseppe Gorgoglione
14f5329fd4 BGFX: fix crash when bgfx effect folder is not present or incomplete
BGFX renderer requires some effects also when post-processing is disabled. If they are not available, MAME complains about missing effect files, but then goes on and crashes soon after printing the backtrace. This fix just exits gracefully when effect files are incomplete and falls back to a different renderer if the bgfx folder is missing at all, warning the user in advance.
2016-07-18 17:21:09 +02:00
ImJezze
89af2864ed Fixed MT #6291
* fixed copy of texture data to bitmap in BGFX
* changed AVI dimension to a lowest integral multiple of 4
  (2 was still to low for most video players, e.g. VLC)
* added audio to AVI record in HLSL
* HLSL AVI record now uses window dimension instead of snap dimension
2016-07-16 20:54:37 +02:00
ImJezze
502e02642e Fixed dimension of high-res snapshots (Alt + 12) and AVI records (Alt + Shift + F12) when screen dimension is swapped 2016-07-16 14:42:42 +02:00
R. Belmont
13c8e76cf7 Merge pull request #1093 from stevenc99/kfreebsd
GNU/kFreeBSD support
2016-07-16 06:09:32 -04:00
Scott Stone
670748c6e4 Assorted typos fixed (MT #6295, 6296) (nw) 2016-07-15 12:38:06 -04:00
Steven Chamberlain
b59412aa2c kfreebsd: use termios.h not just on regular FreeBSD 2016-07-13 13:31:10 +01:00
arbee
4a9c6b1cd0 Apollo changes: [Hans Ostermeyer]
- Keyboard mapping adjusted to fit current MAME
- Fixed screen raw parameters
- Fixed disp.dex Test 20 (Video SYNC Gen. Add. Test) for color displays

3c505: The Ethernet frame check sequence is now appended to transmit data [Hans Ostermeyer]

input_common: fixed 0.172 regression for non-US keyboards [Hans Ostermeyer]
2016-07-12 21:35:31 -04:00
Vas Crabb
3eb0e84041 fix build on debian ppc64 with -maltivec (nw)
problem is caused by <SDL2/SDL_cpuinfo.h> puling in <altivec.h> which #defines vector, pixel and bool
however when the compiler is in Apple Altivec mode, these are context-sensitive keywords and don't need to be #defined
we never need the #defines in our own code because we use the GCC-specific __vector instead of vector
so we trick the header to think the compiler is in Apple Altivec mode to suppress the #defines
2016-07-12 23:17:19 +10:00
Robbbert
1a1a22d6ca windebug: images: added Create option. 2016-07-09 20:41:42 +10:00
Robbbert
44335fc4f6 windebug: in images menu, added support for 7z. 2016-07-09 14:14:56 +10:00
Vas Crabb
13d8279e49 MT6284 flush stdout/stderr before killing process 2016-07-08 16:47:06 +10:00
Vas Crabb
ca5cf4982e Make behaviour slightly friendlier with hlsl_write option (nw) 2016-07-07 21:01:00 +10:00
Vas Crabb
6e64e3314a Patch up d3dhlsl as well (nw) 2016-07-07 20:20:38 +10:00
Vas Crabb
717e90b357 Restore ability to supply explicit name for bgfx AVI output file, auto causes it to generate ascending snap names 2016-07-07 19:10:17 +10:00
Vas Crabb
2c3fdc5221 POSIX implementation for valid filename/path character functions 2016-07-07 16:50:39 +10:00
Vas Crabb
630e7a2e98 Merge branch 'file_create_and_format_refactorings' of https://github.com/npwoods/mame 2016-07-07 16:03:39 +10:00
Vas Crabb
d68203e283 Merge pull request #1035 from GiuseppeGorgoglione/master
Direct3D HLSL: use aviwrite to record avi movies [GiuseppeGorgoglione]
2016-07-07 12:33:47 +10:00
Nathan Woods
34d537338f Changed osd_is_valid_filepath_char() to block 0x7F and C1 control characters 2016-07-05 22:47:16 -04:00
Nathan Woods
2ea76d70ea Create osd_is_valid_filename_char() and osd_is_valid_filepath_char() functions to check to see if a character is legal, and moved retired is_valid_filename_char() in filecreate.cpp. POSIX versions not implemented yet. 2016-07-05 22:19:49 -04:00
Vas Crabb
f736c7c6dd explicit <cstdlib> (nw) 2016-07-06 11:45:43 +10:00
Vas Crabb
1bd116c5c8 use allocating mode of ::realpath by default (nw) 2016-07-05 22:50:14 +10:00
Giuseppe Gorgoglione
85740d73e6 Remove bgfx_avi_name and hlsl_write options
Now the filenames for movies recorded by HLSL and BGFX renderers are automatically generated just like the ones for movies and snapshots recorded by the video core. They are generated according to the "snapname" template (eg. by default <snap_folder>/<device_name>/<numeric_index.avi>, so you can revert to the old behavior (why?) just setting "snapname  bgfx.avi" or "snapname  hlsl.avi".

The main advantage is that now you can record as many movies as you want during a single gaming session without much hassle (previously you had to move or rename the old movie file by hand before recording a new one).
2016-07-04 13:50:10 +02:00
Giuseppe Gorgoglione
2b0682196d Direct3D HLSL: use aviwrite to record avi movies
Use common infrastructure in aviwrite.c instead of equivalent local code.
In addition:
- the target textures used by the HLSL movie recorder are now allocated only when recording is ongoing
- removed shaders->begin_frame() and shaders->end_frame() hooks from the main Direct3D rendering loop
- set default HLSL movie name to hlsl.avi to match bgfx.avi setting
2016-07-04 10:48:47 +02:00
Jeremy Green
3697bd8cdc Added crt-geom and crt-geom-deluxe shaders for bgfx.
This includes several aperture grille / shadow mask patterns. Note that these are all designed to be used on a display with RGB subpixel order, and may thus suffer if rotated or used with a BGR display.
2016-07-03 22:43:16 +02:00
Vas Crabb
491ecdb025 Don't raise stuff to public unnecessarily (nw) 2016-07-02 13:11:16 +10:00
Brad Hughes
ad47988e79 Make monitor list a list of shared_ptr like window_list (nw) 2016-07-01 21:38:05 -04:00
Miodrag Milanovic
715c86f1c7 more cleanup (nw) 2016-07-01 20:50:37 +02:00
Giuseppe Gorgoglione
0312b918a8 Direct3D: convert linked lists into vectors of unique pointers 2016-07-01 01:42:29 +02:00
Giuseppe Gorgoglione
05ae871334 Misc code cleanups for Direct3D code
Removed unused methods, unused function parameters, redundant casts, doubly linked lists made into singly linked lists, etc.
2016-07-01 00:14:36 +02:00
Vas Crabb
c0fc78d341 Not needed anyway (nw) 2016-06-30 12:17:09 +10:00
Brad Hughes
7babf07020 Fix input issues on big endian systems (fixes #963) 2016-06-29 10:02:26 -04:00
Miodrag Milanovic
63f9a01f8c Cleanup and version bump 2016-06-29 08:34:30 +02:00
Vas Crabb
923151d00b Fixed incorrect implementation of win_time_point_from_filetime() 2016-06-26 22:44:21 +10:00
Nathan Woods
5009b55430 Introduced src/lib/util/timeconv.[c|h], moved code from un7z.cpp into it, and implemented win_time_point_from_filetime() in terms of it 2016-06-26 08:12:07 -04:00
Brad Hughes
eb97703a4c Fix mouse behavior on OSX 2016-06-25 20:36:54 -04:00
Nathan Woods
3232bfad89 Fixed incorrect implementation of win_time_point_from_filetime() 2016-06-25 16:08:26 -04:00
Miodrag Milanovic
f75a33f7d1 clang on windows fixes (nw) 2016-06-25 20:06:02 +02:00
Brad Hughes
def1777e74 A few minor input fixes and cleanups
- input modules exit() is called twice. Remove the unnecessary input_exit() method
- removed unnecessary pointer init in handle_input_event and should_hide_mouse
- When registering event callbacks in SDL, don't assume the SDL enum values are int-sized
2016-06-25 11:43:15 -04:00
mahlemiut
443938c991 debugimgui: allow debugger console and log window scrollbars to stay at their maximum value if already there 2016-06-25 13:41:45 +12:00
Vas Crabb
f92f3e22f8 Init (nw) 2016-06-25 11:04:14 +10:00
Vas Crabb
9fccecfcf3 Fine, be that way GCC (nw) 2016-06-25 10:46:55 +10:00
Vas Crabb
52e65cb567 Better fix (nw) 2016-06-25 10:33:59 +10:00
Vas Crabb
c33946ba0b Fix path with missing return, hopefully fix OSX build (nw) 2016-06-25 10:05:59 +10:00
Vas Crabb
e363c5e154 Revert "This worked by pure luck (nw)"
This reverts commit b3491464e4.
2016-06-25 09:56:05 +10:00
couriersud
9027566956 Fix clang compile. (nw) 2016-06-25 00:27:43 +02:00
Miodrag Milanovic
b3491464e4 This worked by pure luck (nw) 2016-06-24 21:25:02 +02:00
Vas Crabb
5cee9e9bc4 POSIX implementation for new directory read features, cleanup of Windows implementation, return directory handle as smart pointer, fix full build [Vas Crabb] 2016-06-25 03:35:23 +10:00
Nathan Woods
7509a56dc0 Incorporated cleanups requested by Vas Crabb 2016-06-24 07:55:10 -04:00
Nathan Woods
4ddfc6a6e4 Changed osd_stat() to return std::unique_ptr<osd::directory::entry> 2016-06-24 07:39:37 -04:00
Nathan Woods
cd8b414e6b C++-ified osd_directory (now osd::directory), and added last_modified to osd::directory::entry 2016-06-24 07:13:18 -04:00
mahlemiut
597b2417b4 debugimgui: don't add command to history if it's the same as the previous one 2016-06-23 00:20:48 +12:00
mahlemiut
59d73876fb debugimgui: when using history, set the cursor position to the end of the text 2016-06-20 14:40:13 +12:00
ImJezze
2f06a08ec4 Small shader corrections (nw) 2016-06-20 00:03:44 +02:00
ImJezze
f056b622bc Fixed crash of D3D when sliders menu is openend and resizing the window or switching between window and full screen mode 2016-06-20 00:03:43 +02:00
mahlemiut
7b2ccbd32e debugimgui: added history functionality to debugger console, fixed issue with main views being re-allocated when no extra windows have been created. 2016-06-19 11:36:54 +12:00
Brad Hughes
fd56812b53 Don't crash on input modules not derived from wininput_module (like "none") 2016-06-18 03:21:38 -04:00
Brad Hughes
432e378456 Add XAudio2 init time logging 2016-06-18 03:19:36 -04:00
Brad Hughes
7f81081c6a Change two dynamic bind messages to verbose. 2016-06-17 22:01:45 -04:00
Brad Hughes
9f214108eb Add WINAPI to other needed functions for stdcall calling convention on 32-bit 2016-06-15 16:25:43 -04:00
smf-
2e51110ebf The calling convention goes inside the brackets of pointers to functions. Allows compiling with MSVC (nw)
Revision: 58dc78b6eb
Author: Giuseppe Gorgoglione <gorgogsp@gmail.com>
Date: 28/05/2016 03:14:15
Message:
Introduce dynamic_module

This is a central cross-platform facility to dynamically bind functions from shared libraries.
    Updated all OSD modules to use it.
2016-06-15 15:11:36 +01:00
Vas Crabb
78ec04e585 Merge pull request #907 from einstein95/patch-6
Rearrange shaderc arguments (nw)
2016-06-15 14:58:51 +10:00
Vas Crabb
d479f0b4be Merge pull request #911 from GiuseppeGorgoglione/master
Three patches with code cleanups to the OSD layer [
Giuseppe Gorgoglione]
* Fix debugging code in font_dwrite.cpp
* Introduce dynamic_module
* Remove Direct3D abstraction layer
2016-06-15 14:52:19 +10:00
mahlemiut
7a23493dcc debugimgui: if console window is active, then give console input widget focus. Note that this means that the disassmbly view in the console cannot get focus at all (but separate disasm windows still can). 2016-06-14 22:30:08 +12:00
mahlemiut
d881a058e4 debugimgui: use IM_COL32 macro 2016-06-13 23:33:46 +12:00
Miodrag Milanovic
7893ce3aea fix handling VIDEO_NONE on windows (nw)
fix SDL version of zexall (nw)
2016-06-12 10:47:06 +02:00
R. Belmont
bdab9d1c96 fix clang build (nw) 2016-06-11 15:11:08 -04:00
Giuseppe Gorgoglione
852bd80d45 Remove Direct3D abstraction layer
It was introduced to support Direct3D 8 and 9 with the same code base. They had a very similar programming model and the abstraction layer was taking advantage of that. Now, Direct3D 8 support in MAME was removed long time ago, an Direct3D 11 and 12 have very different programming models, so the layer is not useful anymore and can be safely removed to simplify the code.
2016-06-11 20:14:09 +02:00
Giuseppe Gorgoglione
58dc78b6eb Introduce dynamic_module
This is a central cross-platform facility to dynamically bind functions from shared libraries.
    Updated all OSD modules to use it.
2016-06-11 20:14:09 +02:00
Giuseppe Gorgoglione
ea1b66f146 Fix debugging code in font_dwrite.cpp
Debugging code was disabled by default so compilation errors were overlooked.
2016-06-11 20:14:09 +02:00
Brad Hughes
6c1464238c Merge pull request #944 from bradhugh/unify_windowlist
Unify window_list in Windows and SDL OSD
2016-06-11 12:29:16 -04:00
Brad Hughes
1f8cf36ec9 Move window_list to osd_common_t 2016-06-11 12:02:22 -04:00
mahlemiut
76629ee6bf debugimgui: draw a light rectangle around a view if it has focus, gives a visual cue as which view accepts input. 2016-06-11 19:07:57 +12:00
Brad Hughes
6bea81d33a Unify window_list in Windows and SDL OSD 2016-06-10 22:55:00 -04:00
Vas Crabb
8d4dbe3747 Fix keyboard shortcus for disassembly comments pane [Vas Crabb]
* Win32 previously recognised Ctrl+N but menu incorrectly showed Ctrl+M
* Qt showed Ctrl+C but it was swallowed by text editing and didn't work
* Ctrl+N is now shown/used by Win32 and Qt (matches Cmd-N on OS X)
2016-06-09 19:26:39 +10:00
therealmogminer@gmail.com
56bd36c5ef Major refactoring of debugger core [Ryan Holtz]
* Eliminate globals/file statics
* Remove lots of stuff from global scope
* Use std::function for custom command registration
* Eliminate some trampolines
* Build fixes from Vas Crabb and balr0g
2016-06-08 08:10:55 +10:00
dankan1890
24d11ff49f Fixed video mode opengl duplicated in SDL build. (nw) 2016-06-07 04:34:49 +02:00
ImJezze
758aaa496a Fixed scanlines if the screen output is less than twice the size of the host source 2016-06-06 19:40:36 +02:00
mahlemiut
d3410b72a1 debugimgui: send character inputs to the debugger view with focus, allows editing in memory views. 2016-06-06 19:07:33 +12:00
mahlemiut
810d7d809a debugimgui: make new window shortcut keypresses not repeat 2016-06-06 15:05:04 +12:00
mahlemiut
233949423a debugimgui: made debugger keys also use ImGui keypress functions 2016-06-06 14:30:57 +12:00
arbee
8a3c3d174c fix non-Windows compile (nw) 2016-06-05 21:23:28 -04:00
ImJezze
6ea15072a7 Procedural texture for vectors in HLSL
* added simple procedural texture for vectors with rounded line ends and beam smoothness
* added optional -vector_beam_smooth option
* removed -antialias option, antialiasing is now always applied, except for plain D3D
2016-06-05 23:50:44 +02:00
Miodrag Milanovic
dba7c1ac94 Placed back old output system as module "-output windows" need more things cleaned (nw) 2016-06-05 21:11:56 +02:00
arbee
eb2617f7ae Fixed network output to include all data [headkaze] 2016-06-05 14:10:57 -04:00
mahlemiut
e90289ddd6 debugimgui: adjust key repeat rate a bit 2016-06-05 23:29:59 +12:00
mahlemiut
68a548863d debugimgui: fix exception when un-collapsing a single window. 2016-06-05 14:16:57 +12:00
mahlemiut
97b46548e6 debugimgui: use ImGui functions to handle view inputs, allows key repeating to work in the debugger views. 2016-06-05 13:28:15 +12:00
mahlemiut
3cf5bfdff1 debugimgui: actually map cursor keys so that they can be used in input text widgets. Duh. 2016-06-04 21:26:13 +12:00
mahlemiut
f6d3737c8b debugimgui: add auto select-all flag to disassembly and memory expression inputs. 2016-06-04 19:00:18 +12:00
Brad Hughes
b8cea5e0f9 Ensure XAudio2 doesn't crash when no sound card present. 2016-06-03 23:17:20 -04:00
mahlemiut
36ca96bcfe debugimgui: pressing Enter on an empty console input box does a single step. 2016-06-03 19:14:11 +12:00
mahlemiut
27a8e715bc debugimgui: removed scrollbar from memory windows, and let the view itself control what is displays. Use cursors/pageup/pagedown to control the memory window when the view cursor is visible. 2016-06-02 19:08:00 +12:00
Brad Hughes
02a4591d48 Hybrid Input Module: Change error printing to verbose on probe() and error on init() 2016-05-31 19:46:09 -04:00
ImJezze
0e7755c88c Vector line width is now applied by BGFX 2016-05-29 18:51:09 +02:00
ImJezze
0c83e22fe0 Cleanup vector batch in D3D (nw) 2016-05-29 18:51:08 +02:00
ImJezze
5da7690669 Removed dead D3D code (nw)
- removed not functional vector texture code
- removed unused D3DTOP_MODULATE2X/4X code
- removed unused antialiasing code for UI lines
- removed usage of vector_time_period which does not exist anymore
2016-05-29 18:51:07 +02:00
therealmogminer@gmail.com
63132b3d01 More slider cleanup, nw 2016-05-28 17:33:45 +02:00
Logan B
0a17395344 Rearrange shaderc arguments (nw)
Gets past a shaderc error on linux
2016-05-28 22:42:31 +12:00
Vas Crabb
6b9c752850 misc fixes (nw)
* fix a mismatched new[]/delete error in corealloc
* _name massacre in corealloc while at it
* add template/macro for delaring array with equivalent dimensions
2016-05-28 15:10:28 +10:00
Miodrag Milanovic
088142ff78 fix OSX compile (nw) 2016-05-27 18:56:15 +02:00
therealmogminer@gmail.com
20cc49bf61 Fix potential crash when using pillarbox default.lay but not specifying 3 shader chains 2016-05-27 15:38:45 +02:00
therealmogminer@gmail.com
f263110d93 Fix crash when using pillarbox shaders, nw 2016-05-27 14:45:41 +02:00
Vas Crabb
73153c3387 ui refactoring [Vas Crabb]
* Make ARRAY_LENGTH cause a compile error if used with a pointer/vector
* Clean up text input code, move common operations to inline templates
* Fix numerous one-byte buffer overruns
* Don't flat-out ignore input beyond the C1 hole
* Fix decoding of SDL text input
2016-05-27 16:03:03 +10:00
Brad Hughes
0023938081 Fix -resolution and -switchres 2016-05-26 19:41:06 -04:00
therealmogminer@gmail.com
1f1ccd9b7d Fix debug crash with bgfx screen chains 2016-05-26 21:54:03 +02:00
Vas Crabb
87429e74d9 ui refactoring [Vas Crabb]
* move menu classes into ::ui namesapce
* reduce scope of many symbols

(first step in making UI code less rage-inducing so I can fix text input)
2016-05-27 03:00:20 +10:00
Justin Kerk
72adf80244 Disable pthreads under Emscripten for now, they aren't actually available unless you compile with experimental settings (nw) 2016-05-26 01:10:42 +00:00
Vas Crabb
b60112ce44 couriersud please stop using _names, they're reserved for compiler/system 2016-05-26 11:05:27 +10:00
Miodrag Milanovic
68785dccfe Cleanups and version bump 2016-05-25 08:19:21 +02:00
ImJezze
e208f1d540 Revert partial fix for border style issue (nw)
- reverted from commit f911dfc and a6ccd3b, because it wasted up to 10 percent of the performance in fullscreen mode (actual fix for MT-06209 is not harmed)
2016-05-24 19:40:47 +02:00
smf-
ca0c90ad4f remove some dead threading code (nw) 2016-05-23 12:36:00 +01:00
ImJezze
052fd0c608 Moved extension of vector lines to where it belongs (nw) 2016-05-22 20:54:31 +02:00
ImJezze
92c2bdf917 Normalized vector attenuation settings
- vector_length_ratio is now independent from screen size
- changed vector_length_ratio range from [0.0, 1000.0] to [0.0, 1.0]
- updated display name and description of vector_length_scale vector_length_ratio
2016-05-22 20:54:30 +02:00
Paul Priest
2164ed1848 window.cpp - Remove dead WM_USER_* events for which handling was causing crashes. Fixes MT6217. 2016-05-22 11:07:16 +01:00
Miodrag Milanovic
b6cd9e18e2 Fixed init of XAudio2 when there is no window active (nw) 2016-05-22 11:34:25 +02:00
ImJezze
18522bbc54 Fixed bloom target size for vector screens in full-screen mode
- this also improves the performance slightly
2016-05-22 11:01:23 +02:00
Robbbert
293caed9cb 1. fixed title of fr2; 2. Fixed access violation after getting:
Proposed video mode not supported on device \\.\DISPLAY1
Unable to initialize Direct3D.
Fatal error: Unable to complete window creation
2016-05-21 13:27:54 +10:00
mahlemiut
13d091c38f debugimgui: made a start on rendering just the visible areas of a debugger view. Generally works, but the scrollbar doesn't appear when viewing a 32-bit or larger address space (imgui bug?) 2016-05-20 22:43:13 +12:00
Quench0
7d7d366223 Improve support for more Joysticks with DirectInput8. Also repair DirectInput7 compile. 2016-05-20 18:05:14 +10:00
Miodrag Milanovic
a6f997cb4d Cleanup of network output module 2016-05-19 19:24:51 +02:00
AJR
ea43e9a386 Ioport refactoring and cleanups (nw)
- Completely move mouse hit testing down into the UI input module. This reduces some dependencies.
- Never return a null pointer from ioport_field::name() to prevent potential crashes. All anonymous inputs are classified as INPUT_CLASS_INTERNAL, so several frontend functions now check type_class instead.
- Correct a couple of typos.
2016-05-18 19:23:54 -04:00
ImJezze
29d11280a1 Fixed half pixel offset of vectors in D3D
- appearance should be identical to GDI and BGFX
2016-05-17 21:39:35 +02:00
ImJezze
829641f901 Small changes to creation of render targest in HLSL (nw)
- removed unessesary recreations of non-screen-quad texture targets
- removed creation of cached targets for non-screen-quad texture
2016-05-16 23:19:17 +02:00
ImJezze
ad3525a4d4 Fixed several HLSL problems when running machines without screen (nw) 2016-05-16 23:19:16 +02:00
therealmogminer@gmail.com
b06be31dfe Move slider_state and ui_menu_item into src/frontend/mame, nw 2016-05-16 19:59:15 +02:00
ImJezze
a6ccd3bc23 Fixed MT 06209 (part 3)
- fixed switchres option
2016-05-15 12:05:05 +02:00
ImJezze
f911dfcc39 Fixed MT 06209 (part 2)
- the D3D device is now always created with presentation parameters where Windowed = true, which actually does not make sense
2016-05-15 11:01:33 +02:00
ImJezze
f15b37e5c6 Fixed MT 06209
- when deleting the D3D device, it was reset before with outdate presentation information
2016-05-14 18:19:10 +02:00
mahlemiut
1055499a5b debugimgui: move view drawing into a single function, few more minor colour fixes. 2016-05-14 17:08:34 +12:00
mahlemiut
a39b5d7159 debugimgui: fix up title and menu bar colours. 2016-05-12 19:38:18 +12:00
Miodrag Milanovic
bc1351ead3 Fix colors due to defaults change (nw) 2016-05-12 08:46:07 +02:00
Miodrag Milanovic
175084897e Added ability to create standalone emulators, added zexall as example (nw) 2016-05-08 19:07:18 +02:00
Miodrag Milanovic
e3ff63cdda no deps between osd and frontend, internal debugger removed (nw) 2016-05-06 14:01:27 +02:00
Miodrag Milanovic
87cca4d3f9 No SDL 1.2 support anymore (nw) 2016-05-06 08:22:05 +02:00
Miodrag Milanovic
1d92248a09 leftovers from mt (nw) 2016-05-06 08:12:38 +02:00
Miodrag Milanovic
3c027304eb fix windows SDL build (nw) 2016-05-06 08:01:11 +02:00
Miodrag Milanovic
6c50e184ff Fix OSX compile (nw) 2016-05-06 07:44:11 +02:00
couriersud
6cb4c9c051 RIP sdlinc.h 2016-05-06 02:41:23 +02:00
couriersud
d69d0f9e57 Remove dead code left over from "-mt". [Couriersud] 2016-05-06 02:10:20 +02:00
ImJezze
b4b6543929 Equalized options of HLSL and BGFX HLSL chain
- removed POT texture size from shadow mask in HLSL, U/V size is now simply the percentage of the actual texture size
- adjusted display names of options
2016-05-05 20:59:33 +02:00
mahlemiut
aa540fbb67 debugimgui: Use a getter function for combo boxes. Memory windows are now much faster. 2016-05-04 20:14:48 +12:00
mahlemiut
40dc83ddef debugimgui: move building of source lists for disasm and memory windows so they are done once when created. 2016-05-02 18:59:26 +12:00
Miodrag Milanovic
be67262fc2 INC -> HXX makes editors and code analyzers see it as C++ (nw) 2016-05-01 20:27:50 +02:00
AJR
b3578a6ec8 Merge remote-tracking branch 'upstream/master' into mui 2016-04-27 15:42:06 -04:00
Miodrag Milanovic
cfee536f22 Cleanups and version bump 2016-04-27 08:13:59 +02:00
AJR
e06384aaba Relieve UI menus and such from having to constantly fetch UI object from global state (nw) 2016-04-26 16:37:43 -04:00
Miodrag Milanovic
f440d5b957 Reset menu on toggle fullscreen [barlog] 2016-04-26 19:58:11 +02:00
balr0g
dc85827687 Clean up extended ASCII (nw) 2016-04-26 11:14:09 -04:00
therealmogminer@gmail.com
36ad386e5f Reapply balrog's fix 2016-04-26 12:39:06 +02:00
therealmogminer@gmail.com
ed3eb38382 Fix preservation of settings when changing screen chain selection with multiple screens, nw 2016-04-26 12:39:05 +02:00
Miodrag Milanovic
bcb1b85de5 Fixed Alt-Enter on SDL (nw) 2016-04-26 09:21:55 +02:00
Miodrag Milanovic
c5cd671e89 fix windows compile (nw) 2016-04-26 08:09:32 +02:00
balr0g
983ce4cae0 Revert "Fix crash when switching screen chains (nw)" upon request (nw)
This reverts commit 3e1af09ef5.
2016-04-25 11:53:22 -04:00
Miodrag Milanovic
a301260017 Fix for Alt-Enter on Brad code (nw) 2016-04-25 17:34:47 +02:00
Miodrag Milanovic
9c2ef88573 Revert "Temp revert of Brad changes (nw)"
This reverts commit 5e831f6506.
2016-04-25 17:22:25 +02:00
Miodrag Milanovic
5e831f6506 Temp revert of Brad changes (nw) 2016-04-25 17:09:47 +02:00
balr0g
3e1af09ef5 Fix crash when switching screen chains (nw) 2016-04-25 11:02:29 -04:00
mahlemiut
b5bfde99e3 debugimgui: added keyboard input for the debug view with focus. 2016-04-25 13:58:14 +12:00
therealmogminer@gmail.com
ea6bc4d8ce bgfx: Ported xBR shaders from libretro. [Ryan Holtz, Hyllian] 2016-04-25 02:12:59 +02:00
ImJezze
07d8b25571 Added "selection" parameter to chain input sampler
- if specified all textures (.png) within the same directoy of the given texture will be selectable via slider in the UI
- also added slider for "shadow mask tile mode" to HLSL chain
2016-04-24 20:36:42 +02:00
Miodrag Milanovic
c8c6617862 Fix Clang build (nw) 2016-04-24 13:24:58 +02:00
Miodrag Milanovic
89c5e1f681 Various cleanups suggested by static analyzer (nw) 2016-04-24 12:58:31 +02:00
Miodrag Milanovic
ff2c95e3bf enabled internal debugger, but this would need to go in time, it is too coupled with UI (nw) 2016-04-23 14:22:46 +02:00
mahlemiut
583eaef9f0 debugimgui: Optimised rendering by drawing text via the window draw list. 2016-04-23 22:56:09 +12:00
Miodrag Milanovic
d4d9774272 changes for UWP (nw) 2016-04-23 12:45:06 +02:00
Miodrag Milanovic
1c726824f2 Split UI and frontend part from core [Miodrag Milanovic] 2016-04-23 11:26:47 +02:00
ImJezze
b681e5dc2b Simplified min, max, default and step value handling for chain configuration
- min, max, default and step are now floating points without an addition scale factor
2016-04-22 19:32:35 +02:00
ImJezze
dba12a31ad Small fixes (nw)
- fixed not used u_humbar_hertz_rate parameter
- fixed half pixel shift of the shadow mask along the screen diagonal
2016-04-22 13:16:37 +02:00
Miodrag Milanović
6eb5b8a474 Merge pull request #826 from bradhugh/shared_ptr2
Refactor OSD window.
2016-04-21 19:28:01 +02:00
Brad Hughes
1a844a49c5 Refactor OSD window.
Unified renderer in osd_window as std::unique_ptr
Made windows all std::shared_ptr<window_type>
Made window lists std::list<std::shared_ptr<window_type>>
Updated OSD SDL worker_param to not use malloc (not compatible with smart
pointers)
Made renderer pointer to window a weak reference. May not be available
during destruction of the window.
2016-04-21 11:10:03 -04:00
Miodrag Milanovic
b69d285eab works for sub folders of CHAIN folder specified (nw) 2016-04-21 15:50:15 +02:00
therealmogminer@gmail.com
f5aa86dfc6 Checkpoint 1, nw 2016-04-21 15:48:29 +02:00
Miodrag Milanovic
ff27716bec compile just one chain with
make shaders CHAIN=unfiltered
2016-04-21 15:21:08 +02:00
mahlemiut
5e26d00e6b debugimgui: added sending of mouse clicks to debugger views. Please note that you have to click the view area first to give it focus before you can set the cursor in a disassmbler or memory view. 2016-04-21 21:29:05 +12:00
ImJezze
6e9ef69b7c Fixed b1c06ac (nw) 2016-04-21 09:59:10 +02:00
ImJezze
b1c06acb61 Implemented handling for u_screen_scale and u_screen_offset (nw) 2016-04-21 07:52:29 +02:00
dankan1890
a72ad0c4fe fix sdl build. (nw) 2016-04-21 06:48:26 +02:00
Miodrag Milanovic
a314888cf6 SDL cleanup (nw) 2016-04-20 10:21:27 +02:00
Miodrag Milanovic
8318d85597 Isolate CLI part (nw) 2016-04-20 09:50:13 +02:00
Miodrag Milanović
2ee3949169 Merge pull request #823 from ajrhacker/deviter
Iterate over devices C++11 style [AJR]
2016-04-20 09:19:08 +02:00
ImJezze
cd4dfca43e Refactored BGFX distortion pass (nw)
- also removed vector hack
2016-04-19 21:18:16 +02:00
ImJezze
8ed3a7d94a Refactored distortion pass
- separated curvature parameter into distortion, cubic_distortion and distort_corner
- distortion and cubic_distortion can be negative, to compensate each other
- distort_corner is intependent from the image distortion
2016-04-19 21:13:20 +02:00
therealmogminer@gmail.com
c97e2cb590 Merge branch 'master' of https://github.com/mamedev/mame 2016-04-19 16:30:43 +02:00
therealmogminer@gmail.com
f8034ac812 bgfx: Added SuperEagle shader. [Ryan Holtz] 2016-04-19 16:29:30 +02:00
Brad Hughes
ee6872dc68 Add UWP implementation for cursor methods 2016-04-18 19:05:45 -04:00
AJR
084d3654ca Iterate over devices C++11 style
Replace the old device_iterator and its specialized versions with functionally equivalent classes that use standard operators to yield references to devices/interfaces rather than pointers. With range-based for loops, they no longer have to be stored in named variables, though they can also be reused concurrently since the iteration state is now maintained by a subclass.

Add a few more typical getters to device_t::subdevice_list.
2016-04-18 18:53:28 -04:00
David Haywood
3ab4ced499 fix compile (nw) 2016-04-18 21:07:49 +01:00
couriersud
118658da9d These init calls all returned false. No need for a return value in this
case. [Couriersud]
2016-04-18 21:28:07 +02:00
couriersud
aef55ded1f soft is hard and hard is soft. Two is one and one is two. No wonder
"-video accel" has substandard performance if opengl is disabled.
[Couriersud]
2016-04-18 20:37:28 +02:00
therealmogminer@gmail.com
c64b88bc78 -Added HQ2x, HQ3x and HQ4x shaders. [MooglyGuy,Jules Blok,Cameron Zemek,Maxim Stepin] 2016-04-18 19:40:07 +02:00
couriersud
82188dee99 Fix *nix compile. 2016-04-18 18:46:12 +02:00
Brad Hughes
afbb4b6581 Check that we have a window before updating cursor state 2016-04-18 11:32:03 -04:00
Brad Hughes
870db16e99 Standardize platform window pointer storage in osd_window.
Also encapsulate show/hide capture/release cursor functionality.
2016-04-18 10:03:01 -04:00
therealmogminer@gmail.com
8a07dafbaf Fix crash with -video none, nw 2016-04-18 13:13:22 +02:00
mahlemiut
6db5aa2322 debugimgui: added error log window, and limited the debugger console to display 100 lines, so that rendering it doesn't get too slow. 2016-04-18 19:48:01 +12:00
mahlemiut
5c4ef7ac70 debugimgui: Removed some unused stuff, renamed window class. 2016-04-18 16:12:43 +12:00
Brad Hughes
73bf0b9521 Merge branch 'master' of https://github.com/mamedev/mame.git 2016-04-17 16:35:27 -04:00
Brad Hughes
a525b60817 Fixed missing diagnostic module include. 2016-04-17 16:35:21 -04:00
couriersud
162033204f Fix clang compile. 2016-04-17 22:30:55 +02:00
Brad Hughes
ef4f80b4a4 Create diagnostic module for profiling and crash diagnostics 2016-04-17 16:22:51 -04:00
therealmogminer@gmail.com
e6a54bcc23 Minor fixups to pillarboxing shaders 2016-04-17 20:43:10 +02:00
therealmogminer@gmail.com
250a5cc805 Add AVI writing to bgfx, nw 2016-04-17 19:16:14 +02:00
ImJezze
a45d713ad6 HLSL settings are reset now, when a new machine is selected 2016-04-17 14:20:27 +02:00
mahlemiut
74dd3287e5 Added ImGui based debugger. [Barry Rodewald]
Note: Currently only works with the BGFX renderer.  Anyone who wishes to
      write a ImGui backend for other renderers are welcome to do so.
2016-04-17 23:50:50 +12:00
therealmogminer@gmail.com
32464738c6 Fix compile error on SDL targets 2016-04-16 21:35:14 +02:00
ImJezze
ac6903e05e Merge branch 'master' of https://github.com/GiuseppeGorgoglione/mame
# Conflicts solved:
#	src/osd/modules/render/d3d/d3dhlsl.cpp
2016-04-16 18:38:59 +02:00
therealmogminer@gmail.com
bff9111a30 Add pillarboxing shaders and layout for bgfx, nw 2016-04-16 15:30:40 +02:00
Brad Hughes
f7c9b7095e Use std::chrono instead of GetTickCount in window.cpp/h for Windows OSD 2016-04-15 22:55:01 -04:00
dankan1890
1e3037baf7 ui: Re-enabled configuration menu for single-machine and added some options.
Adding handler for the right mouse button in the main menu, calls the machine configuration.
2016-04-15 17:48:05 +02:00
dankan1890
a0715c7c40 Reduction code for entries of "enum class ui_menu_item_type" and the use of item_append with separators. 2016-04-15 17:39:45 +02:00
Miodrag Milanovic
570c743fcd this is no issue anymore (nw) 2016-04-15 16:16:56 +02:00
Miodrag Milanovic
0bcc96406d renamed class to osd_watchdog (nw) 2016-04-15 16:08:28 +02:00
Miodrag Milanovic
37c94e3373 Update windows to use platform independent watchdog implementation (nw) 2016-04-15 16:01:35 +02:00
Miodrag Milanovic
59662e6c71 moved osdsync to root of OSD, removed osdmini (nw) 2016-04-15 15:19:24 +02:00
Miodrag Milanovic
a83a3c4497 lower deps on clifront.h (nw) 2016-04-15 14:10:47 +02:00
therealmogminer@gmail.com
99aa7eacd7 bgfx: Add data-driven render target clearing [Ryan Holtz] 2016-04-14 17:22:24 +02:00
ImJezze
32f0e6efac Removed hacks for vector screens from shaders (nw)
- added handling of texture coordinates for vector screens to core render
- added handling of orientation/rotation for vector screens to D3D renderer
2016-04-13 19:21:57 +02:00
Brad Hughes
fc53a500f6 Merge branch 'master' of https://github.com/mamedev/mame.git 2016-04-11 23:33:56 -04:00
Brad Hughes
faef055aa6 Fix BACKSLASH2 SDL key mapping 2016-04-11 23:33:46 -04:00
couriersud
612e4f8810 Refactored osd_work to become more c++. Bye to malloc and memset. 2016-04-11 01:34:29 +02:00
Brad Hughes
2a6e17c438 Merge branch 'master' of https://github.com/mamedev/mame.git 2016-04-10 17:18:32 -04:00
Brad Hughes
ea0a6844f7 Skeleton implementation for Universal windows main app classes. 2016-04-10 17:18:23 -04:00
arbee
2d2f52e858 fix SDL compile (nw) 2016-04-10 16:13:55 -04:00
Brad Hughes
c4d91605fc Merge branch 'master' of https://github.com/mamedev/mame.git 2016-04-10 13:34:23 -04:00
Brad Hughes
114a8f8218 Fix bug in Xinput DPAD POV mapping. 2016-04-10 13:33:26 -04:00
therealmogminer@gmail.com
dd9c9a0fb3 Make OSDs return ui_menu_item lists, not slider_state lists 2016-04-10 19:22:31 +02:00
Miodrag Milanovic
ffbe0c66be Basic TCP server based on libuv [Inaki Baz Castillo,Miodrag Milanovic] 2016-04-10 17:03:51 +02:00
therealmogminer@gmail.com
fa92550ddb Add dividing line to bgfx slider list where applicable, nw 2016-04-10 13:13:10 +02:00
Vas Crabb
c569c7c9ad Add render.h no longer indirectly supplied via emu.h <- ui/ui.h 2016-04-10 17:55:18 +10:00
couriersud
a107408a08 Fix compile on linux and windows. 2016-04-10 04:46:23 +02:00
couriersud
3b951313a4 Fixed linux compile. 2016-04-10 03:24:09 +02:00
couriersud
9d4af9a834 convert osd_event into a class. Since all is std:: now, reduce to
inlineable code.
2016-04-10 02:46:31 +02:00
therealmogminer@gmail.com
f10de4fa46 Fix memory leak when changing screen chains, will fix any issues later, nw 2016-04-10 02:38:08 +02:00
therealmogminer@gmail.com
8719535cbc Make sliders use an std::vector instead of a linked list, nw 2016-04-10 02:38:08 +02:00
couriersud
3ab596e445 Fix linux compile. 2016-04-10 02:08:22 +02:00
Brad Hughes
2c273f6719 Correct trigger axis. XInput small code cleanup. 2016-04-09 19:53:43 -04:00
therealmogminer@gmail.com
66cc460224 Fix compile on windows, nw 2016-04-10 00:48:38 +02:00
couriersud
db1e7f6b07 Include modules/osdwindow.h instead of window.h. 2016-04-09 23:45:41 +02:00
couriersud
c091005ca4 Fix OSX compile. Thanks balrog! 2016-04-09 23:45:41 +02:00
couriersud
5f6e20d6a6 Fix SDL build on linux:
- removed inclusion of SDL headers in all headers.
- replaced those by forward declarations and in one case by a wrapper
class (for a typedef struct).
- added -Wno-strict-prototypes to 7z build (gmake target)
2016-04-09 22:21:58 +02:00
therealmogminer@gmail.com
19d51345a1 Add runtime screen chain selection, nw 2016-04-09 19:15:47 +02:00
Miodrag Milanovic
a14994c6c0 Added skeleton for network output (nw) 2016-04-09 15:19:43 +02:00
Miodrag Milanovic
2f974586d6 Added none and console output providers (nw) 2016-04-09 15:19:43 +02:00
Miodrag Milanovic
39c9c8c5dc Remove os dependant output handling (nw) 2016-04-09 15:19:43 +02:00
couriersud
706b8b363a Add includes for dependency documentation. (nw) 2016-04-08 20:33:42 +02:00
Miodrag Milanovic
d00185936b Try to fix issue on some linux platforms (nw) 2016-04-08 13:27:02 +02:00
Miodrag Milanovic
595d930f25 fix 2016-04-08 10:33:12 +02:00
Miodrag Milanovic
0f69c325ad Revert "Fix SDL compile on linux. Took the opportunity to remove a number of"
Partial revert only, some changes still in
This reverts commit 632b10cd0e.
2016-04-08 10:30:18 +02:00
Miodrag Milanovic
d11b3c6655 Revert "compile fix on windows (nw)"
This reverts commit f862b77520.
2016-04-08 10:23:57 +02:00
Miodrag Milanovic
f862b77520 compile fix on windows (nw) 2016-04-08 09:20:15 +02:00
couriersud
632b10cd0e Fix SDL compile on linux. Took the opportunity to remove a number of
"emu.h" includes from src/osd/modules/render/bgfx code. 
There is still a conflict between mame memory.h and bgfx memory.h to be
resolved.
2016-04-08 03:30:12 +02:00
Antonio Giner
c402c87dc0 Fix keepaspect & unevenstretch toggles in SDL OSD 2016-04-07 18:36:00 +02:00
therealmogminer@gmail.com
4f66357f9e Pull a bunch of screen chain code from drawbgfx to chainmanager where it belongs, nw 2016-04-06 17:02:31 +02:00
Brad Hughes
9db1556541 Make XInput triggers centered at 0 2016-04-06 10:18:47 -04:00
Brad Hughes
a0ba9bc8c7 Make Xinput triggers analog 2016-04-06 09:44:02 -04:00
Brad Hughes
42bc565cfb Use XAudio2 by default if available. 2016-04-05 20:52:15 -04:00
Miodrag Milanovic
c211202b6e Fixed typo and updated shaders (nw) 2016-04-05 20:07:22 +02:00
Brad Hughes
89b21ff822 Merge branch 'master' of https://github.com/mamedev/mame.git 2016-04-05 09:58:52 -04:00
Brad Hughes
31d425e866 Release WMI COM objects correctly in XInput device discovery. 2016-04-05 09:58:29 -04:00
Miodrag Milanovic
06415edd9e Added some more files to bgfx build and initialize imgui (nw) 2016-04-05 15:50:08 +02:00
Giuseppe Gorgoglione
990476526c Save Windows post-fx scheenshots as a single .png
Currently in Windows post-fx screenshots (L-ALT + F12) are split in 4 chunks and saved as 4 separate .png files. This was probably done to facilitate fx code debugging, since post-fx screenshots are usually very big and old monitors were low in resolution. With current monitors this shouldn't be a problem any more.
2016-04-05 13:35:12 +02:00
Giuseppe Gorgoglione
74999d3749 Fix Windows rendering after post-fx snapshot or video recording
In Windows OSD, when post-processing effects are enabled, after taking a post-fx screenshot (L-ALT + F12) or enabling post-fx video recording (L-SHIFT + L-ALT + F12) the window is not updated anymore while the emulation goes on normally. This patch fixes that.
2016-04-05 13:20:04 +02:00
Miodrag Milanovic
2becb82ad1 fix compile on non-windows platforms (nw) 2016-04-05 09:57:20 +02:00
Miodrag Milanovic
90ca7b2422 Simplify include for shaders (nw) 2016-04-05 08:55:49 +02:00
Miodrag Milanovic
2904597f18 Added sample shader (nw) 2016-04-05 08:55:08 +02:00
Miodrag Milanovic
125acc0ff7 Updated makefile to support shaders in multiple dirs (nw) 2016-04-05 08:54:33 +02:00
Brad Hughes
3dd8afd6c0 Hybrid DirectInput/XInput module 2016-04-04 22:01:00 -04:00
Miodrag Milanovic
61ea1f20f2 move common struct to common place (nw) 2016-04-04 14:30:54 +02:00
Brad Hughes
eae8eb8b00 winmain compile for UWP 2016-04-03 21:49:38 -04:00
Miodrag Milanovic
bad2e6199e Not needed anymore after move to C++11 features (nw) 2016-04-03 19:47:44 +02:00
Miodrag Milanovic
cea094a3a3 moved aueffectutil to tools (nw) 2016-04-03 19:06:06 +02:00
dankan1890
37f39ecf3c Small changes. (nw) 2016-04-03 18:45:34 +02:00
Miodrag Milanovic
74f95ba03e Fix linux compile (nw) 2016-04-03 18:02:14 +02:00
Miodrag Milanovic
5e80a732aa move clipboard handling on proper place (nw) 2016-04-03 17:55:10 +02:00
Miodrag Milanovic
0730ffc328 sync (nw) 2016-04-03 17:55:10 +02:00
Miodrag Milanovic
d8aa889edf merge main.cpp for windows platform (unicode) (nw) 2016-04-03 17:55:10 +02:00
Miodrag Milanovic
26c8434a70 removed deprecated doc (nw) 2016-04-03 17:21:14 +02:00
Miodrag Milanovic
796f890450 removed testkeys (nw) 2016-04-03 17:19:41 +02:00
Miodrag Milanovic
bd0abfd004 moved emscripten resources (nw) 2016-04-03 17:19:41 +02:00
Miodrag Milanovic
528a39fc54 moved man files to proper location (nw) 2016-04-03 17:19:41 +02:00
Miodrag Milanovic
f2bff83b3d Removed empty header file (nw) 2016-04-03 14:39:22 +02:00
Miodrag Milanović
5b0b34b30a Merge pull request #781 from h0tw1r3/master
cross compile fixes
2016-04-03 13:44:55 +02:00
Miodrag Milanovic
8679bf8e0d this was removed by mistake 2016-04-03 13:21:05 +02:00
Miodrag Milanovic
99bbef5fbf moved texture flags to proper place (nw) 2016-04-03 13:13:33 +02:00
Miodrag Milanovic
bae0f1fc80 removed not used part of code (nw) 2016-04-03 12:54:13 +02:00
Miodrag Milanovic
865ac0e35c reverting 88e84e7c52 (nw) 2016-04-03 12:52:08 +02:00
ImJezze
370aa2e8f5 Fixed render target dimension swap for BGFX (nw) 2016-04-03 12:09:38 +02:00
Miodrag Milanovic
88e84e7c52 ATTN: Ryan, please check. This is flag that causes BGFX looked worst then others (nw) 2016-04-03 10:48:11 +02:00
Jeffrey Clark
07ef71ef8b osx x86 invalid intptr_t conversion (nw)
src/osd/sdl/output.cpp:86:50: error: format specifies type 'int' but the argument has type 'intptr_t' (aka 'long')
2016-04-03 06:26:03 +00:00
Jeffrey Clark
5306f42a77 fix cross compile (nw) 2016-04-03 06:25:53 +00:00
Miodrag Milanovic
731abe8ba0 Fixed joystick on Android preventing application to crash, cleanup init for SDL in total (nw) 2016-04-02 15:37:08 +02:00
Miodrag Milanovic
3b5b03041d fix clang complain (nw) 2016-03-31 21:20:32 +02:00
Miodrag Milanovic
6281e26ddb fix compile on windows (nw) 2016-03-31 20:22:02 +02:00
AJR
54f7422c2a Conflict resolution (nw) 2016-03-31 10:29:46 -04:00
AJR
a7e393b36b Iterate over core classes C++11 style
C++11 range-based for loops can now iterate over simple_list, tagged_list, core_options, device_t::subdevice_list, device_t::interface_list, render_primitive_list and all subclasses of the above, and much code has been refactored to use them. Most core classes that have these lists as members now have methods that return the lists themselves, replacing most of the methods that returned the object at an owned list's head. (A few have been retained due to their use in drivers or OSD.)

device_t now manages subdevice and interface lists through subclasses, but has given up the work of adding and removing subdevices to machine_config.

memory_manager has its tagged lists exposed, though the old rooted tag lookup methods have been removed (they were privatized already).
2016-03-31 09:43:53 -04:00
Brad Hughes
2b0cc65dba Unsubscribe SDL input modules from events on exit. 2016-03-30 17:24:29 -04:00
Miodrag Milanovic
913ab1e140 Cleanups and version bump 2016-03-30 08:35:21 +02:00
Scott Stone
28c9be35ea Change INIPATH default to cover new HLSL presets (ini/presets) (nw) 2016-03-30 00:38:08 -04:00
therealmogminer@gmail.com
59e129f599 Reinstate scale param for bgfx texture, nw 2016-03-30 03:28:03 +02:00
therealmogminer@gmail.com
d9153eb306 Get bgfx post-processing working with laserdisc games, nw 2016-03-29 11:28:24 +02:00
Jeffrey Clark
18d7e34620 cleanup build includes (nw) 2016-03-28 22:46:00 -05:00
therealmogminer@gmail.com
a4f615a14d Get NTSC working in both bgfx and d3d, nw 2016-03-29 01:56:37 +02:00
therealmogminer@gmail.com
c0b1182712 Final bgfx fixups for release 2016-03-28 22:58:32 +02:00
ImJezze
fe9dfdbf99 Refactored Bloom
- reduced raster bloom level to 8
- extended vector bloom level to 15
- changed vector bloom to be less blocky
- removed bloom_lvl9_weight and bloom_lvl10_weight options
2016-03-28 20:19:01 +02:00
therealmogminer@gmail.com
523a552f5c Adjust some minor things in bgfx, nw 2016-03-27 19:56:49 +02:00
Miodrag Milanovic
158c90cf11 Initial work to make MAME work on Android [Miodrag Milanovic] 2016-03-27 17:35:23 +02:00
Lord-Nightmare
852240ddf2 fix compile (nw) 2016-03-26 22:22:34 -04:00
R. Belmont
5db0501a3b Merge pull request #743 from ajrhacker/options
Allow software selected from UI to install slot defaults
2016-03-26 21:47:59 -04:00
R. Belmont
0bdcf99982 Merge pull request #745 from ImJezze/pull
Improved appearance
2016-03-26 21:47:02 -04:00
ImJezze
41595c05c4 Change vector and gameboy preset (nw) 2016-03-26 11:18:08 +01:00
AJR
96c6dd3344 Allow software selected from UI to install slot defaults
Prevent clang warning about unused variable in BGFX target_manager (nw)
2016-03-26 01:17:01 -04:00
therealmogminer@gmail.com
ad7f0e260e Minor bgfx fixups, nw 2016-03-26 00:15:27 +01:00
therealmogminer@gmail.com
1d4d639044 Fix unused variable, nw 2016-03-25 19:00:38 +01:00
therealmogminer@gmail.com
22f0c31238 Cleanup in the bgfx aisle, nw 2016-03-25 18:44:46 +01:00
ImJezze
c731b59cbe Added oversampling option
- and some cleanup
2016-03-25 16:40:32 +01:00
therealmogminer@gmail.com
93e5a03b89 Huge cleanup of render target handling, nw 2016-03-25 16:20:12 +01:00
Jeffrey Clark
3fcb69a1f2 Fix cross compile (nw) 2016-03-23 15:37:11 -05:00
Brandon Munger
1ac041cd69 Fix compile error (nw) 2016-03-23 14:44:41 -04:00
Vas Crabb
173dcfaaa5 Copy/paste some code from Windows OSD to get SDL going again - sorry if this is dirty 2016-03-24 05:01:31 +11:00
Miodrag Milanovic
bc43490a4c ah (nw) 2016-03-23 18:35:35 +01:00
Miodrag Milanovic
6fcd60b271 Fix clang compile error (nw) 2016-03-23 18:25:32 +01:00
therealmogminer@gmail.com
ba0a1d8d52 Merge bgfx_shader into master, nw 2016-03-23 17:55:55 +01:00
Brad Hughes
d0867ac3f2 Removing unused functions from winutf8.cpp. Also adding UWP implementations for Set/GetWindowText. 2016-03-23 12:44:30 -04:00
therealmogminer@gmail.com
5ed9f938ea Typo fix, nw 2016-03-23 17:43:17 +01:00
therealmogminer@gmail.com
e6e705190c Fix broken cocktail mode, nw 2016-03-23 17:37:59 +01:00
therealmogminer@gmail.com
e3355f1b9f Fix up description of -bgfx_screen_chains, nw 2016-03-23 17:27:15 +01:00
therealmogminer@gmail.com
295aafc5e5 Per-screen sliders and some bugfixing, nw 2016-03-23 17:12:07 +01:00
therealmogminer@gmail.com
9f48ad4fbb Add screen-specific shader chain support, nw 2016-03-23 15:11:12 +01:00
Miodrag Milanovic
1054cfe7fd Fix compile (nw) 2016-03-23 08:38:30 +01:00
Brad Hughes
1c7f05a833 Get max char size from ANSI codepage instead of IsDBCSLeadChar() 2016-03-22 21:15:46 -04:00
therealmogminer@gmail.com
c0a67e7310 Fix housemnq crash, nw 2016-03-22 16:54:01 +01:00
Vas Crabb
59fa46280b Remove now-unused variable 2016-03-22 12:48:16 +11:00
therealmogminer@gmail.com
124b4ab8a7 Fix cocktail mode crash 2016-03-21 18:26:50 +01:00
Antonio Giner
7d22cfaaf6 Merge remote-tracking branch 'refs/remotes/mamedev/master' 2016-03-21 17:01:57 +01:00
Miodrag Milanovic
2a4a703c79 clang compile fixes (nw) 2016-03-21 11:31:53 +01:00
therealmogminer@gmail.com
a99df78801 Merge with master 2016-03-21 08:27:06 +01:00
therealmogminer@gmail.com
b224d9a77a Make specifying invalid bgfx backends non-fatal, nw 2016-03-21 06:33:45 +01:00
therealmogminer@gmail.com
825d575195 Fix lots of issues with bgfx 2016-03-21 03:43:02 +01:00
Antonio Giner
57b1c6ab77 Merge remote-tracking branch 'refs/remotes/mamedev/master' into integer_scaling_v2 2016-03-20 22:14:39 +01:00
Antonio Giner
bb51885229 Move integer scaling implementation to render_target::compute_visible_area
- Add core option -unevenstretch
- Add core option -unevenstretchx
2016-03-20 21:57:38 +01:00
Brad Hughes
9328fa9028 Fix VS Build issue for WRL ComPtr 2016-03-19 21:43:27 -04:00
dankan1890
5410d5a40a temporary fix for VS build. (nw) 2016-03-20 00:47:54 +01:00
Brad Hughes
725b90b5fd Handle a couple more SDL window events to track focus in input module. 2016-03-19 12:50:12 -04:00
Brad Hughes
f38d58f41b Fix build break for X11 input 2016-03-19 12:22:50 -04:00
Brad Hughes
bcf2c50e13 Merge branch 'master' of https://github.com/mamedev/mame.git 2016-03-19 12:00:57 -04:00
Brad Hughes
7a0a60d3c4 Fix SDL input focus tracking bug plus remove references to USE_OLD_SDL_INPUT compiler directive from the input refactor. 2016-03-19 12:00:50 -04:00
Miodrag Milanovic
95a2e4c2c6 compile BGFX for RPI as well (nw) 2016-03-19 16:09:34 +01:00
Miodrag Milanovic
d2fe9e454b Revert "Don't invoke VLA unnecessarily"
This reverts commit 9a299f35f3.
2016-03-19 16:09:34 +01:00
Vas Crabb
57f61b2bae * Fix handling of return codes from newer Windows APIs
* Fix a handle-leak in Windows stat implementation
* Return actual error code when path creation succeeds but file creation doesn't
2016-03-19 21:07:25 +11:00
Vas Crabb
9a299f35f3 Don't invoke VLA unnecessarily 2016-03-19 20:35:19 +11:00
Miodrag Milanovic
34cac8befd fix compile on 4.9.x (nw) 2016-03-19 10:24:32 +01:00
Vas Crabb
855136bfc3 Fix creation of paths on POSIX 2016-03-19 20:07:03 +11:00