2366 Commits

Author SHA1 Message Date
jdgleaver
55b6d8ba15 Miscellaneous overlay fixes 2020-09-11 17:00:44 +01:00
Autechre
33a04a794f
Merge pull request #11312 from justinweiss/3ds-enable-threading
[3DS] Enable threading and add a threaded audio driver
2020-09-10 06:50:12 +02:00
Autechre
2d3c63f545
Merge pull request #11248 from justinweiss/update-libctru
[3DS] Update to libctru 2.0
2020-09-10 06:49:54 +02:00
driver1998
9cf71619d3 GDI: use custom BITMAPINFO struct to avoid malloc 2020-09-07 12:36:43 +08:00
driver1998
fb00bf8602 gdi: Fix crashing 2020-09-07 10:55:25 +08:00
driver1998
a4dec6e226 d3d9: "Fix" the HLSL render chain
It won't get you very far, but at least it won't crash.
Needs HAVE_HLSL and HAVE_D3DX defines and DirectX SDK
2020-09-07 10:13:41 +08:00
valadaa48
405b987986 oga_gfx: round width to nearest integer when scaling 2020-09-03 21:53:21 -04:00
twinaphex
e810b0251a (GL) Cleanups 2020-09-01 19:54:41 +02:00
twinaphex
5f08605680 Refactor joypad drivers 2020-08-30 05:29:32 +02:00
Justin Weiss
f53c137459 [3DS] Enable threading 2020-08-27 19:36:39 -07:00
twinaphex
4d1cfa9c41 Make the 'raw' versions the generic function for the message loop
callback - this way it's reused for SDL2 input driver too
2020-08-28 02:55:39 +02:00
twinaphex
32279c3a70 Split up wnd_proc_common_internal into two - one for dinput,
one for raw
2020-08-28 02:21:13 +02:00
Justin Weiss
9ae2514009 [3DS] Update to libctru 2.0
Set USE_CTRULIB_2=1 to build with libctru 2.0. When unset, this code
is compatible with the older toolchain.

Some 2.0 changes addressed rare problems in earlier versions:

- Save / restore stack pointer for init / exit
  Otherwise, it could be outside of the range we deallocate.
- Run aptMainLoop in the audio driver to react correctly to sleep events

Other changes for 2.0:

- Remove ninjhax1 -- requires outdated APIs that have been removed
- Switch from __sync_arbiter to syncArbitrateAddress
- Use implicit gxCmdBuf
- Use gpuPresentBuffer for double buffering
2020-08-26 19:08:12 -07:00
twinaphex
662e37f670 Replace more instances of string_split 2020-08-26 13:35:05 +02:00
twinaphex
6b3fcf79f0 (DXGI) Turn these into macros 2020-08-24 00:04:12 +02:00
twinaphex
6b978eb057 (D3D11) Cleanups 2020-08-19 11:26:30 +02:00
twinaphex
5166eebcaf for loop cleanups - use space after 'for' 2020-08-19 03:06:22 +02:00
twinaphex
aeeff7f350 (D3D11) Cleanup 2020-08-16 03:11:00 +02:00
twinaphex
bb58b0d6e3 (GLSLANG) Move more common code out of shader_gl_core and shader_vulkan
and into glslang_util.h
2020-08-16 02:05:38 +02:00
twinaphex
2a9915f80d (D3D) Buildfix 2020-08-08 19:12:01 +02:00
twinaphex
ade58fc8b6 (UWP) Buildfix 2020-08-08 18:17:40 +02:00
twinaphex
365ca7cf63 Buildfix 2020-08-06 02:59:09 +02:00
twinaphex
a1ce1e4f1d gl_glsl_set_proc_address unneeded - remove it 2020-08-04 03:58:51 +02:00
twinaphex
72afa2f932 Cleanups 2020-08-03 16:33:54 +02:00
twinaphex
332bcc7f9e Remove dxgi_update_title 2020-08-03 15:48:08 +02:00
twinaphex
f3c4b4fcf7 (GLCORE) Fix other use after free issues pointed to by jdgleaver 2020-08-03 15:19:34 +02:00
twinaphex
2d10d9fd7a (D3D10) Move these static global variables to D3D10 struct 2020-08-03 12:39:46 +02:00
twinaphex
db80281b0f (D3D11) Move static global variables to D3D11 state 2020-08-03 12:36:51 +02:00
twinaphex
76398f4151 (glcore) Fix heap use after free 2020-08-03 12:15:52 +02:00
twinaphex
85e5c783af Backport getting rid of video_context_driver_input_driver 2020-08-03 00:47:58 +02:00
twinaphex
deee393dfb Backport video_context_driver_free changes 2020-08-03 00:35:07 +02:00
twinaphex
3e41cbc381 Revert "Add get_metrics to poke interface"
This reverts commit 119689c9405b5e4a321fafc340f6f0294b0338c3.
2020-08-02 23:44:28 +02:00
twinaphex
03fe023de4 Revert "Cleanup"
This reverts commit 576679ac05cae2c4eef867ef1427835b94c350a2.
2020-08-02 23:44:09 +02:00
twinaphex
da5806a810 Revert "Cleanups"
This reverts commit a01a2375a18bdabba2ead7de693e94cddb2622db.
2020-08-02 23:43:56 +02:00
twinaphex
2efa8ac80e Revert "Get rid of video_context_driver_input_driver"
This reverts commit 75b1a09184fdf3bc502a7e62cd7137ee2741e5af.
2020-08-02 23:43:19 +02:00
twinaphex
75b1a09184 Get rid of video_context_driver_input_driver 2020-08-02 20:37:21 +02:00
twinaphex
a01a2375a1 Cleanups 2020-08-02 20:19:42 +02:00
twinaphex
576679ac05 Cleanup 2020-08-02 19:59:26 +02:00
twinaphex
119689c940 Add get_metrics to poke interface 2020-08-02 19:25:45 +02:00
twinaphex
416363e9fd Cleanups 2020-08-02 18:49:31 +02:00
bulzipke
1c0fb50877
Update ctr_gfx.c
It fixed the sound cracking when opening or closing the 3DS screen.
2020-07-28 15:03:43 +09:00
twinaphex
7f1cd52d65 Remove video_driver_context_get_size 2020-07-27 14:33:21 +02:00
twinaphex
d6465a1348 Refactor 'focus' function callback 2020-07-27 13:46:55 +02:00
twinaphex
74345f08d6 Refactor video_driver_has_windowed 2020-07-27 13:39:02 +02:00
twinaphex
0c78d2ec27 Cleanup 2020-07-27 13:22:23 +02:00
twinaphex
60f3265017 Cleanups 2020-07-27 13:16:14 +02:00
twinaphex
61b798b789 Get rid of video_context_driver_set_video_mode 2020-07-27 11:08:34 +02:00
twinaphex
197465c1ea make_current is only ever used for GL, so move it out of
video_driver_load/unload_texture and into the inner GL
drivers
2020-07-27 10:26:13 +02:00
twinaphex
3d893b7602 Add extra parameter to unload_texture 2020-07-27 10:15:28 +02:00
twinaphex
dc94356505 Cleanup context driver video output functions 2020-07-27 09:38:20 +02:00