radius
aab6a86633
only apply fixed window size when the setting is enabled
2018-11-26 21:15:03 -05:00
radius
1187df922a
restore old functionality till the change is done in other platforms
2018-11-25 17:24:54 -05:00
radius
c2fc35f2cc
repurpose the old settings to the new window sizing code
2018-11-25 11:10:58 -05:00
twinaphex
7730828560
Start implementing dropdown list for resolution - Win32 right now at first - now need to make OK button do something
2018-11-24 10:31:41 +01:00
Francisco Javier Trujillo Mata
d7cc3b7983
PS2 making the gfx driver clean the screen
2018-11-09 22:40:50 +01:00
Francisco Javier Trujillo Mata
0880bd00b0
PS2 is compiling with null drivers
2018-11-09 22:40:50 +01:00
Stuart Carnie
3a64ddc287
fix(metal): Enable GL context for HAVE_COCOA_METAL
2018-11-05 06:54:46 -07:00
twinaphex
624698d2d9
(Ozone) Add menu color theme
2018-10-27 16:51:17 +02:00
twinaphex
75d36ebc1f
(Ozone) Button legend now responds to 'Menu Swap OK/Cancel' setting
2018-10-27 06:18:56 +02:00
twinaphex
ebd8e5bbc2
Cleanup
2018-10-17 06:20:22 +02:00
twinaphex
778c3fff73
(GL) Use shader_driver directly
2018-10-15 06:47:18 +02:00
twinaphex
9e2d688e1d
Get rid of video_context_driver_get_context_data
2018-10-15 01:27:18 +02:00
twinaphex
454761a6ed
Get rid of video_context_driver_bind_hw_render
2018-10-14 19:49:24 +02:00
twinaphex
2edd03361c
Remove video_context_driver_check_window
2018-10-14 17:49:29 +02:00
twinaphex
e661cf3cfd
Rewrite video_context_driver_init_first
2018-10-14 08:13:05 +02:00
twinaphex
2bca74bbaa
Fix this
2018-10-14 08:00:42 +02:00
twinaphex
24e18fcce6
Simplify video_context_driver_init_first
2018-10-14 07:59:43 +02:00
twinaphex
4d6dfd163d
Remove unused function
2018-10-14 06:00:26 +02:00
twinaphex
60eb45c102
prevent some pointer grabbing
2018-10-01 02:00:07 +02:00
twinaphex
fe8a9d7dc3
Cleanups
2018-09-30 03:09:49 +02:00
twinaphex
1012416b67
Change size of video_driver_window_title to 512
2018-09-28 21:43:23 +02:00
M4xw
cf097d7f42
[LIBNX] Implement OpenGL
2018-09-27 01:23:24 +02:00
alphanu1
c362a6d7f4
Added functions for new CRT SwitchRes options
2018-09-23 20:39:40 +01:00
twinaphex
b5c6586b12
Change CRT switch resolution - add options 'Off/15 Khz/31Khz'
2018-09-17 01:30:49 +02:00
twinaphex
bf75e6b9d7
video_context_driver_swap_interval - add in safeguard
2018-09-12 07:16:33 +02:00
twinaphex
650c173125
Turn public functions into static functions
2018-09-12 06:39:07 +02:00
twinaphex
3c160a6eb4
Create video_driver_get_all_flags
2018-09-12 06:31:41 +02:00
twinaphex
914df58d2e
(WGL) Adaptive Vsync should work now for WGL
2018-09-12 03:59:25 +02:00
twinaphex
4738ef545c
Change interval type to signed int
2018-09-12 00:08:13 +02:00
alphanu1
952b46f2c1
Fix for crt interlaced bug
2018-09-08 22:09:30 +01:00
orbea
d8ea30881d
Default to gl instead of vulkan.
...
If the video_driver is set incorrectly it will default to vulkan
instead of gl. However its possible to have RetroArch built with
vulkan even with no working vulkan drivers and this will cause a
segfault.
Defaulting to gl again should be a safer default which should crash
for fewer users.
Fixes https://github.com/libretro/RetroArch/issues/5568 .
2018-08-24 13:55:09 -07:00
Brad Parker
341cf63399
Qt: show shader pass in parameters window, reload shader params when shader is reloaded
2018-08-14 21:38:52 -04:00
Tatsuya79
e48b9011bf
Don't adjust audio for VRR. Silence log message about it.
2018-08-09 12:29:40 +02:00
twinaphex
0df98a53a6
Use video_driver_is_threaded_internal from within gfx/video_driver.c
2018-07-14 05:24:28 +02:00
twinaphex
cc473a25b9
Add video_driver_is_threaded
2018-07-14 05:23:03 +02:00
Brad Parker
637ded4ef1
add 21:9 aspect ratio
2018-07-13 15:29:07 -04:00
Brad Parker
ab27b7c85f
initial SIXEL video driver
2018-07-12 16:55:08 -04:00
Dwedit
41ce61974d
A hack to invalidate the `frame_cache_data` pointer during the following events:
...
Load Game, Reset, Init, Unload, Unload Game, Video Driver Destroy, Video Driver Free, Video Driver Init
This prevents an invalid pointer from being read if the first frame starts out paused.
2018-07-06 09:53:31 -05:00
Stuart Carnie
411bcf8bdd
feat(apple): Metal support for macOS
...
* includes rgui
* shader support
This is a work-in-progress and there are some bugs and visual artifacts
still to be fixed.
2018-06-20 21:33:45 -07:00
twinaphex
3aba080434
Integrate HLSL code into d3d9_hlsl_renderchain.c
2018-05-16 15:52:11 +02:00
Dwedit
bafb23edc3
Additional null check in video_driver.c
...
I have managed to trigger a null pointer exception on one of these two functions, so for safety, I added in null checks for the structs and function pointers.
2018-05-09 19:25:33 -05:00
Brad Parker
a1aefc901c
Qt WIMP GUI
2018-04-30 14:33:05 -04:00
twinaphex
2760586086
Cleanups
2018-04-24 04:46:13 +02:00
twinaphex
d6c17178a3
Add some logging for shader backend setup
2018-04-23 18:25:41 +02:00
twinaphex
c4c8699ee3
Only show max swapchain images if supported by video driver and/or
...
context driver
2018-04-23 13:34:30 +02:00
twinaphex
dae0f36a20
Some cleanups
2018-04-21 15:00:35 +02:00
twinaphex
ec2267daa6
Cleanups
2018-04-16 04:35:23 +02:00
twinaphex
4cc3cf7344
Only restore resolution through resolution switch if CRT
...
switch mode was ever actually used
2018-04-16 03:19:33 +02:00
Brandon Wright
533f898132
Add get refresh rate context function. Implement for X11 and Wayland.
2018-04-15 17:56:12 -05:00
twinaphex
6d00810716
Simplify video_driver_monitor_adjust_system_rates
2018-04-15 19:38:01 +02:00
twinaphex
dc7c4fea2d
Prevent Coverity warning
2018-04-15 18:31:46 +02:00
twinaphex
87cf910396
(CRT switch) Cleanups
2018-04-15 17:12:28 +02:00
Twinaphex
a2516d23a3
Merge pull request #6469 from alphanu1/master
...
CRT Switchres Capabilities
2018-04-15 16:56:15 +02:00
twinaphex
97cf6613da
(XMB/Shaders) Reimplement menu shader loading for GLSL/Cg/HLSL backends - if
...
XMB is selected, it will compile the shader pipelines in
advance
2018-04-12 02:20:17 +02:00
twinaphex
f071e8b440
Solve more Clang static analysis warnings
2018-04-09 16:42:12 +02:00
alphanu1
9524203051
Add files via upload
...
Amended braces and function calls.
2018-03-31 15:17:55 +01:00
twinaphex
ef039c2c08
Cleanups
2018-03-29 22:39:41 +02:00
alphanu1
d06386d0a5
Add files via upload
...
Variables removed from headers.
2018-03-29 17:54:46 +01:00
alphanu1
024b23aa2c
Add files via upload
2018-03-26 20:29:34 +01:00
alphanu1
3b9036cc79
Add files via upload
...
Requested changes
2018-03-26 20:22:35 +01:00
alphanu1
51276a682f
Add files via upload
...
Changed variable names
2018-03-26 17:18:43 +01:00
alphanu1
b30aca2d6d
CRT
2018-03-26 16:08:29 +01:00
twinaphex
875450e228
Statistics - add sample count
2018-03-24 15:42:45 +01:00
twinaphex
33d99fe75b
Add fps / ms metrics to statistics
2018-03-24 15:39:02 +01:00
twinaphex
1fb7d14b36
Add audio statistics
2018-03-24 12:38:25 +01:00
twinaphex
647f1a48a6
Add max size to statistics
2018-03-24 12:08:43 +01:00
Twinaphex
473d978d78
Merge pull request #6444 from Dwedit/original_suggestion
...
Functions to suspend and resume audio and video, and environment function for core to query status of enabled/disabled audio and video
2018-03-24 09:54:47 +01:00
Dwedit
7deeb6d2fa
Functions to enable and disable audio and video, and an environment function to query status of audio and video enables
2018-03-23 14:12:05 -05:00
twinaphex
4d1b4f905f
Start adding OSD statistics - doesn't work yet for SDL2/SDL
2018-03-23 17:43:49 +01:00
twinaphex
0ece3d8397
Start implementing frame_time/frame_count to video_info
2018-03-23 13:30:30 +01:00
twinaphex
32b2808fe0
Revert "Turn scaler_ctx_scale_direct into inline function"
...
This reverts commit d51edd8239
.
2018-03-14 23:48:47 +01:00
twinaphex
d51edd8239
Turn scaler_ctx_scale_direct into inline function
2018-03-11 18:14:17 +01:00
twinaphex
0ec5ce8cfe
Get rid of d3d context drivers
2018-03-02 17:23:43 +01:00
twinaphex
9606db6f79
Start untangling more functions from context driver
2018-03-02 16:38:57 +01:00
twinaphex
4c08bdc0e9
Add GFX_CTX_GX_API
2018-03-01 22:22:13 +01:00
twinaphex
16c1bd7a03
Create context get_api function
2018-03-01 21:16:54 +01:00
twinaphex
128dff15ab
Add better fallback in case current_video_context_api is none
2018-03-01 18:15:04 +01:00
twinaphex
c8028f3150
Set current_video_context_api for GL and Vulkan
2018-03-01 17:51:55 +01:00
twinaphex
fbead501f3
Move SHADER_DIR_INIT to end of video driver init function
2018-02-26 19:33:27 +01:00
twinaphex
696fa900a1
Refactor macro functions which were unsafe
2018-02-26 18:08:17 +01:00
twinaphex
5b79d2b942
Refactor video_shader_driver_set_parameters
2018-02-26 17:51:52 +01:00
twinaphex
5665e27324
Nits
2018-02-26 15:12:19 +01:00
twinaphex
964e9db588
Reduce calls to video_driver_get_ptr - set it once for
...
video_frame_info_t
2018-02-16 17:19:55 +01:00
twinaphex
1e2d8de9ca
Move renderchain code to the relevant files
2018-02-16 11:24:10 +01:00
radius
789897481b
fix a bug with the || clean-up, tried to clean up the whole thing a bit
2018-02-14 22:32:19 -05:00
radius
5b99a74cd8
remove the empty || that is shown when FPS display is disabled
2018-02-13 22:43:34 -05:00
aliaspider
37bebb5b65
(D3D12) slang shaders support.
2018-02-11 00:00:20 +01:00
radius
ce5b481fc8
android build fix
2018-02-07 21:26:03 -05:00
radius
4eb7ca5db1
better fix for shader next / shader prev
2018-02-07 21:26:03 -05:00
radius
37454f79a8
fix SHADER_NEXT/SHADER_PREV
2018-02-07 21:26:00 -05:00
twinaphex
88cb40834c
Style nits
2018-02-02 22:50:07 +01:00
Twinaphex
f096e667d8
Merge pull request #6204 from aliaspider/master
...
(D3D11) Implement slang shader specification using Spirv-Cross.
2018-02-01 16:33:58 +01:00
twinaphex
b0013dbd68
Cleanups
2018-01-31 22:49:19 +01:00
aliaspider
5bc78d3ad5
(D3D11) Implement slang shader specification using Spirv-Cross.
...
(incomplete)
2018-01-31 01:08:36 +01:00
twinaphex
4aca11693e
video_shader_driver_reset_to_defaults - early return if current_shader
...
is NULL
2018-01-26 04:14:44 +01:00
Brad Parker
f087b150c9
Add quick menu option to watch shader files for changes and recompile automatically (Linux only for now)
2018-01-25 15:50:57 -05:00
twinaphex
c227ce5ed2
Correct typo
2018-01-24 22:16:06 +01:00
twinaphex
e79c19e52a
Ifdef this for HAVE_D3D12
2018-01-24 21:38:32 +01:00
aliaspider
30d5cd1a07
(D3D10/11/12) add viewport settings.
...
- move some common routines to video_driver.c
2018-01-24 15:00:32 +01:00
aliaspider
a5bf9d8dc6
(D3D10/11/12)
...
.add a d3d10 driver.
.add more utility functions to d3d*_common files.
.add an image transfer/convert function to dxgi_common.
.various refactors / style nits.
2018-01-23 18:04:55 +01:00
twinaphex
673a190d84
Merge d3d8_renderchain into d3d8.c
2018-01-23 07:18:46 +01:00
twinaphex
4b6c4e5a6a
BUildfix for D3D enum
2018-01-23 04:25:37 +01:00
twinaphex
d3c2d90a2c
BUildfix
2018-01-23 03:53:35 +01:00
twinaphex
7e56ecba4b
Cleanups
2018-01-23 03:22:00 +01:00
twinaphex
6cb2159a50
Buildfix for D3D8 renderchain
2018-01-23 03:00:34 +01:00
twinaphex
d28d14079a
Create separate D3D8 and D3D9 drivers
2018-01-23 02:55:33 +01:00
aliaspider
094196220d
(D3D11/D3D12) initial video driver implementation.
...
- some headers from the windows 10 sdk need to be added to the include
path when targeting mingw :
d3d11.h
d3d11sdklayers.h
d3d12.h
d3d12sdklayers.h
d3d12shader.h
d3dcommon.h
d3dcompiler.h
2018-01-21 04:10:45 +01:00
twinaphex
11f26ed549
Refactor verbosity code - try to avoid log calls if verbosity is not
...
set
2018-01-17 06:28:26 +01:00
twinaphex
a8445c3ec4
D3D8 buildfix
2018-01-03 20:23:34 +01:00
twinaphex
e87cd7382e
Silence warning
2018-01-02 06:41:52 +01:00
twinaphex
cf3a010ead
Remove some HAVE_MENU ifdefs
2017-12-31 17:42:07 +01:00
twinaphex
8c2070947e
Prevent some warnings
2017-12-29 13:00:24 +01:00
misson20000
6d2a7b1f26
Nintendo Switch (libtransistor) port
2017-12-29 00:10:01 +01:00
radius
a7f989fdb6
fix fullscreen toggle
2017-12-17 13:16:40 -05:00
gblues
6904101c44
Clean up trailing whitespace
...
== DETAILS
Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Brad Parker
247b9ea973
add menu setting for window opacity, includes generic display server interface
2017-12-11 18:12:42 -05:00
twinaphex
241df59771
Get rid of include
2017-12-04 11:20:18 +01:00
Alcaro
0e91822ad1
#5802
2017-11-27 17:11:43 +01:00
twinaphex
00d57af005
C89_BUILD fixes
2017-11-26 22:53:42 +01:00
orbea
e10dd4d95e
Silence -Wunused-function warning.
2017-11-21 13:29:46 -08:00
Rob Loach
5a990841dc
Fix priority and timing of FPS and Fast Forward messages
2017-11-18 11:05:38 -05:00
twinaphex
bfd815985f
Rename function callback
2017-11-16 12:02:25 +01:00
twinaphex
721b5f9529
Add set_mvp function callback
2017-11-15 16:51:29 +01:00
twinaphex
a5076df751
Implement set_mvp/set_coords - remove GL code from video_driver.c
2017-11-15 14:24:16 +01:00
twinaphex
619acbb5aa
Start implementing video_driver_set_mvp properly
2017-11-15 14:16:06 +01:00
twinaphex
2b1481d97f
Refactor set_mvp code a bit
2017-11-15 14:09:41 +01:00
twinaphex
b50a667335
Buildfixes for Win32
2017-11-14 21:45:11 +01:00
twinaphex
229841b1c4
Create video_driver_set_coords
2017-11-14 21:43:13 +01:00
twinaphex
41daddfe1c
Create video_driver_set_mvp
2017-11-14 21:22:44 +01:00
twinaphex
e560adcc9f
Refactor this - get rid of set_coords_fallback
2017-11-13 12:27:45 +01:00
twinaphex
ade80dbe76
Move gl_ff_matrix to gfx/video_driver.c
2017-11-13 12:15:28 +01:00
twinaphex
2aea191835
Cleanups
2017-11-13 11:34:40 +01:00
twinaphex
6b6d1ee986
Create cb_set_coords
2017-11-13 11:26:53 +01:00
twinaphex
ec123ef6ca
Get rid of most of the HAVE_FBO usage
2017-11-13 06:20:30 +01:00
twinaphex
c1c9e1897c
Expand conditional
2017-11-11 19:12:32 +01:00
twinaphex
9c6edaff30
Update renderchain driver for GL
2017-11-07 10:10:52 +01:00
twinaphex
f681cb455c
Prepare GL renderchains
2017-11-07 07:56:18 +01:00
Brad Parker
fc856c76a8
fix race condition reading OSD message in video driver
2017-10-29 23:28:02 -04:00
Brad Parker
ee7590868a
add option to remove frame count from FPS display
2017-10-13 20:35:55 -04:00
rz5
677229d541
(video driver) Style nit
2017-10-12 19:59:20 +01:00
rz5
24c1ad72ce
(video driver) If we can't set flag data, do it later
...
Currently, there is at least one instance where video_context_driver_set_flags() is called when current_video_context.set_flags is set to NULL (see #5538 ). To solve this, we create 2 new global variables - one to store flag data and the other to symbolize we deferred setting flag data.
This way, the next time we do get_flags(), we first check if we have anything stored first.
Should fix #5538
2017-10-12 17:38:07 +01:00
Twinaphex
59cabfe80f
Merge pull request #5454 from rz5/master
...
Prevent crashes caused by loading shaders in incompatible contexts
2017-10-11 17:25:25 +02:00
Alcaro
8d274f4f43
let's not include unneeded headers.
2017-10-03 00:03:55 +02:00
Alcaro
b97853a536
Rename STRING_REP_ULONG to STRING_REP_USIZE
2017-10-02 22:51:51 +02:00
twinaphex
721afe22d8
(MSVC 2010) Compile griffin.c as C
2017-10-02 22:06:32 +02:00
twinaphex
e9a072c1ce
uniquely name D3D function for initing renderchain
2017-09-20 14:53:40 +02:00
r5
4a9325d01d
(shaders) Avoid certain shader types when context isn't compatible.
...
@bparker06 to the rescue.
2017-09-18 03:46:17 +01:00
twinaphex
06a33aada8
Cleanups
2017-09-09 04:22:38 +02:00
twinaphex
30bff1ffab
Cleanups
2017-09-09 04:11:46 +02:00
twinaphex
c0207e9b56
Revert "Reduce size of variables"
...
This reverts commit 79f1166c6e
.
2017-09-09 00:20:39 +02:00
twinaphex
79f1166c6e
Reduce size of variables
2017-09-08 23:44:10 +02:00
twinaphex
02ac92b91d
Cleanups
2017-09-08 16:43:34 +02:00
twinaphex
c3bb76a05e
Try to reduce variable sizes
2017-09-08 05:58:48 +02:00
Brad Parker
0a1b3fedc0
VC6 support (targets NT 3.51)
2017-09-06 23:03:02 -04:00
twinaphex
bde5a6dc19
Rename renderchain_driver_t to d3d_renderchain_driver_t
2017-09-05 04:21:40 +02:00
twinaphex
e1c139dda6
Buildfix
2017-09-05 00:10:24 +02:00
twinaphex
b46c4b4db5
Create d3d8_renderchain.cpp and d3d9_hlsl_renderchain.cpp
2017-09-05 00:00:17 +02:00
twinaphex
ef79711837
(MaterialUI) Hook up framebuffer opacity
2017-08-15 22:43:09 +02:00
twinaphex
0ed4b97bbc
Revert "Don't hide 'Resolution' setting behind compile-time ifdefs anymore"
...
This reverts commit 365cfd22ee
.
2017-08-13 18:05:51 +02:00
twinaphex
365cfd22ee
Don't hide 'Resolution' setting behind compile-time ifdefs anymore
2017-08-09 10:33:36 +02:00
twinaphex
c7615fdf00
Add RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT
2017-08-07 18:06:03 +02:00
twinaphex
b11620e1eb
Add retro_timers.h/retro_math.h
2017-06-28 04:41:38 +02:00
twinaphex
e0cc113689
Try to fix this regression https://github.com/libretro/RetroArch/issues/5060
2017-06-18 18:50:46 +02:00
twinaphex
4850af8eac
Revert "Try to set use_hw_ctx in advance for Android"
...
This reverts commit c010c5b258
.
2017-06-18 17:09:27 +02:00
twinaphex
c010c5b258
Try to set use_hw_ctx in advance for Android
2017-06-18 16:45:36 +02:00
twinaphex
c7ac70a923
Combine video_renderchain_driver.c and video_driver.c
2017-06-12 15:45:58 +02:00
Jean-André Santoni
364440813f
Merge pull request #5009 from psyke83/xmbtrans
...
xmb: enable menu transparency support when emulation is paused (v2)
2017-06-11 21:23:24 +02:00
twinaphex
f6c2d97ed5
Don't do these constant checks
2017-06-07 03:41:36 +02:00
twinaphex
ae98ea7210
Remove unused function
2017-06-06 03:49:21 +02:00
Conn
f413b23f06
xmb: enable menu transparency support when emulation is paused (v2)
...
Allow xmb menu driver transparency when "Pause when menu activated" is enabled (default setting).
This is also the default behaviour of the rgui driver and is helpful for users to preview
video/shader changes on the fly.
Issues fixed:
gfx/video_driver: enable menu transparency only when game is loaded (as a loaded core can display
black or corrupt image)
gfx/video_driver: don't clobber cached frame during driver reinit if game was loaded
(fixes missing menu background/paused foreground on full screen toggle)
menu/drivers/xmb: ensure transparency is applied when game is loaded and no shader pipeline active.
menu/menu_driver: explicitly apply transparency only for existing textures (i.e. wallpapers), to
avoid background of cores with no content yet loaded mixing with wallpaper.
2017-06-02 02:55:59 +01:00
twinaphex
44b4a4e028
Revert "xmb: enable menu transparency support when emulation is paused"
...
This reverts commit 17d0037bd5
.
2017-06-01 17:21:55 +02:00
Conn
17d0037bd5
xmb: enable menu transparency support when emulation is paused
...
Allow xmb menu driver transparency when "Pause when menu activated" is enabled (default setting).
This is also the default behaviour of the rgui driver and is helpful for users to preview
video/shader changes on the fly.
Issues fixed:
gfx/video_driver: enable menu transparency only when game is loaded (as a loaded core can display
black or corrupt image)
gfx/video_driver: don't clobber cached frame (fixes missing background on full screen toggle)
menu/drivers/xmb: ensure transparency is applied when game is loaded and no shader pipeline active.
menu/menu_driver: explicitly apply transparency only for existing textures (i.e. wallpapers), to
avoid background of cores with no content yet loaded mixing with wallpaper.
2017-05-31 23:45:16 +01:00
Twinaphex
1be1386161
Revert "xmb: allow transparency when emulation paused"
2017-06-01 00:27:44 +02:00
Conn
57503051ea
xmb: allow transparency when emulation paused
...
Allow xmb menu driver transparency when "Pause when menu activated" is enabled (default setting).
This is also the default behaviour of the rgui driver and is helpful for users to preview
video/shader changes on the fly.
2017-05-29 23:49:40 +01:00
Arto Vainiolehto
766e4f5110
Fix scaling bug in video_driver_translate_coord_viewport()
...
- now scaled_x and height are correctly calculated, using viewports's width and height, respectively, as the scaling factor
-- previously the scaling factor was the screen's width/height, which meant that if screen and viewport had different bounds, scaled_x/scaled_y were incorrectly calculated
2017-05-30 00:00:56 +03:00
twinaphex
a0924a414f
Get rid of some unnecessary function callback wrapper functions
2017-05-21 09:30:32 +02:00
twinaphex
b7b7c67ca3
Windows buildfix
2017-05-20 17:47:56 +02:00
twinaphex
c0431b34c9
Turn some variables static
2017-05-20 14:31:07 +02:00
twinaphex
6fea8f14c5
Call video_driver_cb_has_focus directly
2017-05-20 14:11:50 +02:00
twinaphex
bd424da015
Turn video_driver_data and current_video into static variables again
2017-05-20 14:09:24 +02:00
twinaphex
5bcacf9b49
Create video_driver_cb_has_focus
2017-05-20 12:02:24 +02:00
twinaphex
efce4d0abf
Revert "Add cb_set_shader_coords"
...
This reverts commit 06df028722
.
2017-05-19 21:21:40 +02:00
twinaphex
06df028722
Add cb_set_shader_coords
2017-05-19 21:13:44 +02:00
twinaphex
d8f5065d64
Add cb_set_shader_mvp
2017-05-19 19:52:33 +02:00
twinaphex
c5485152aa
Do away with conditional inside build_info
2017-05-19 15:59:28 +02:00
twinaphex
2a54544eb3
Add cb_shader_use to video_frame_info
2017-05-19 14:24:19 +02:00
twinaphex
4144c8de35
Prevent coverity warning
2017-05-19 13:54:43 +02:00
twinaphex
b0398c1482
C89 build fixes
2017-05-19 03:34:53 +02:00
twinaphex
89dddaf9f0
Cleanups
2017-05-19 01:19:38 +02:00
twinaphex
4d24153870
Turn into static function
2017-05-19 00:07:24 +02:00
twinaphex
59b3344e72
Combine video_driver.c and video_shader_driver.c
2017-05-18 14:47:24 +02:00
twinaphex
49bf9b62ae
Cleanups
2017-05-18 09:46:04 +02:00
twinaphex
d181f70303
Don't call video_viewport_get_system_av_info inside gfx/video_driver.c
2017-05-18 09:44:51 +02:00
twinaphex
c9af58494b
Set video_context_driver functions to null functions if not
...
already set
2017-05-18 03:53:05 +02:00
twinaphex
3f7a30a4b3
Start hooking up dummy callback functions to video_context_data
...
so that conditionals aren't necessary
2017-05-18 03:37:02 +02:00
twinaphex
941a5d4f94
Go through function callback for swap_buffers as well
2017-05-18 03:05:07 +02:00
twinaphex
86ee08b7a7
Add video context driver update window title callback
...
to video_frame_info_t
2017-05-18 02:53:12 +02:00
twinaphex
4df6151e14
video_driver_init_filter - cleanup
2017-05-16 21:36:33 +02:00
twinaphex
bf3188eac4
Combine runloop_ctl and rarch_ctl
2017-05-15 05:06:23 +02:00
twinaphex
0e34d362d3
Fix video_driver_is_focused - keyboard should work again with
...
threaded video
2017-05-14 18:52:36 +02:00
twinaphex
581333f222
Get rid of implicit memset
2017-05-13 23:24:27 +02:00
twinaphex
b22d7902f1
Turn macro back into function
2017-05-13 19:37:16 +02:00
twinaphex
17a15273ba
Create function out of video_driver_is_focused - no longer
...
call video_driver_context_focus from video driver
2017-05-13 19:19:49 +02:00
twinaphex
d4756f83e5
Stop calling video_driver_context_has_windowed from within video
...
drivers
2017-05-13 19:11:32 +02:00
twinaphex
f6c8aba119
Move video_context_driver_update_window_title to video_driver_frame
2017-05-13 18:58:13 +02:00
twinaphex
42ebe7a7ad
Merge runloop.c and retroarch.c
2017-05-11 09:11:46 +02:00
twinaphex
f928e57064
Combine video_context_driver.c and video_driver.c
2017-05-09 01:25:59 +02:00
twinaphex
bac9973354
Cleanups
2017-05-09 00:58:01 +02:00
twinaphex
c147604103
Update
2017-04-29 18:33:50 +02:00
twinaphex
7bdef1fde4
Buildfixes
2017-04-29 18:30:23 +02:00
twinaphex
b5e97238ac
Optimize video_driver_threaded_{lock|unlock}
2017-04-29 17:38:47 +02:00
twinaphex
d86f466fe9
Turn video_driver_is_threaded into macro
2017-04-29 17:33:36 +02:00
twinaphex
03145a0424
Pass video_is_threaded variable to video_driver_init
2017-04-29 17:10:59 +02:00
twinaphex
e84adb504f
Don't try to call video_driver_is_threaded from outside
...
gfx/video_driver.c - only exception right now - menu_display.c
2017-04-29 16:52:52 +02:00
twinaphex
63504cd9c8
No longer need to grab threaded variable from settings struct
2017-04-29 16:37:49 +02:00
twinaphex
2322e77795
Add to video_frame_info
2017-04-29 16:07:02 +02:00
twinaphex
79c7627651
Move video_viewport_custom to gfx/video_driver.c
2017-04-29 13:10:01 +02:00
twinaphex
e6ab06a701
Move path variables
2017-04-29 00:39:29 +02:00
twinaphex
f0c2d786ae
Update arrays struct
2017-04-28 22:59:13 +02:00
twinaphex
05e4ec733e
Move uint variables
2017-04-28 21:03:04 +02:00
twinaphex
d1b6a865c4
Buildfixes
2017-04-28 15:29:20 +02:00
twinaphex
0da40fb3aa
Move all float settings
2017-04-28 14:57:55 +02:00
twinaphex
ed53be7c81
Move all bool settings
2017-04-28 14:11:34 +02:00
twinaphex
b792c5deae
move bool setting
2017-04-28 12:26:01 +02:00
twinaphex
cc095e56fc
Start refactoring bool variables
2017-04-28 00:53:20 +02:00
twinaphex
2a13af52fc
Revert "video_init function - video_info_t should not be const -"
...
This reverts commit c8bcbad4a7
.
2017-04-24 12:25:14 +02:00
twinaphex
023599366c
Revert "Cleanups"
...
This reverts commit 0021970c16
.
2017-04-24 12:25:00 +02:00
twinaphex
0021970c16
Cleanups
2017-04-24 12:19:47 +02:00
twinaphex
c8bcbad4a7
video_init function - video_info_t should not be const -
...
try to set video_driver_width/video_driver_height outside
of video driver init function
2017-04-24 12:03:21 +02:00
twinaphex
34852e159a
Cut down on amount of times video_driver_build_info is called
2017-04-23 22:20:11 +02:00
twinaphex
087002d9c5
Get rid of unused video_driver_get_frame_count - locking/unlocking
...
around this variable should no longer be necessary
2017-04-23 21:39:49 +02:00
twinaphex
2dfe441381
Get rid of video_info->frame_count
2017-04-23 19:21:12 +02:00
twinaphex
7c6b93f58f
More cleanups
2017-04-23 17:44:24 +02:00
twinaphex
3ec5816259
Rewrite RUNLOOP_CTL_SYSTEM_INFO_GET
2017-04-23 16:41:26 +02:00
twinaphex
caafee006c
Get rid of performance counter for softfilter
2017-04-23 11:26:10 +02:00
twinaphex
7104d329fd
Update logs
2017-04-18 06:02:43 +02:00
Twinaphex
216e7bcdaf
Silence more warnings on iOS
2017-02-26 21:46:19 +01:00
Twinaphex
b7b3b2cb5f
Try to prevent truckload of warnings on iOS
2017-02-26 10:33:03 +01:00
twinaphex
5d8c191df7
Cleanup
2017-02-16 01:30:50 +01:00
twinaphex
374fd57270
Remove the few performance counters that depend on runloop_ctl
2017-01-25 18:15:58 +01:00
twinaphex
a9164b7124
Try to use performance counter plus functions in most cases
2017-01-25 17:12:43 +01:00
twinaphex
41349621cf
Add extra param to runloop_get_status
2017-01-25 16:57:22 +01:00
twinaphex
6661c0fb94
Rewrite performance counter stop/start/init into macros
2017-01-25 16:53:06 +01:00
twinaphex
5ddcadcb2f
video_monitor_get_fps only used from frame function, so get rid
...
of separate function
2017-01-25 16:33:44 +01:00
twinaphex
c21fd538a9
Minor cleanups
2017-01-25 16:08:50 +01:00
twinaphex
41a647945b
Create video_driver_get_record_status
2017-01-25 15:30:51 +01:00
twinaphex
4b01726f48
(video driver) Minor cleanups
2017-01-25 15:22:12 +01:00
twinaphex
631ee03df4
Expand video_driver_get_status
2017-01-25 04:42:19 +01:00
twinaphex
a151c24117
Create video_driver_get_status
2017-01-25 04:39:21 +01:00
twinaphex
fb84259742
Refactor some functions
2017-01-23 15:24:33 +01:00
twinaphex
68dc34d5a4
Move comment
2017-01-23 14:40:48 +01:00
twinaphex
34d3b88759
Cleanups
2017-01-23 14:19:32 +01:00
twinaphex
b7ebcd6948
Simplify video_monitor_get_fps
2017-01-23 14:04:00 +01:00
twinaphex
9b1c0abf5e
Create runloop_msg_queue_pull
2017-01-23 13:56:05 +01:00
twinaphex
0d5b3b9273
Create menu_driver_is_alive
2017-01-23 00:37:52 +01:00
twinaphex
a104c73738
Go back to this
2017-01-22 23:19:35 +01:00
twinaphex
d3707fe3b0
See if this works
2017-01-22 22:28:24 +01:00
twinaphex
2f504b4057
(gfx/drivers) Get rid of remaining runloop.h / runloop_ctl
...
references inside gfx/drivers
2017-01-22 18:17:48 +01:00
twinaphex
d4b7edff4a
Cut down on menu_driver_ctl usage from within video drivers
2017-01-22 17:30:32 +01:00
Brad Parker
c4bfa6b0d2
DOS: initial VGA int13 graphics driver
2017-01-22 10:47:11 -05:00
twinaphex
a1594615f0
Create runloop_get_status
2017-01-22 16:22:20 +01:00
twinaphex
96c8ca5a09
Header update #1
2017-01-22 13:40:32 +01:00
twinaphex
23c35c39b5
Add more video_frame_info_t members
2017-01-22 02:04:58 +01:00
twinaphex
e6c4327a1c
(GL) Fix lockup at startup
2017-01-20 21:05:55 +01:00
twinaphex
927e4b6be0
Less settings pointer grabbing
2017-01-20 15:38:20 +01:00
twinaphex
0be6264796
Get rid of more settings pointer grabbing
2017-01-20 15:33:47 +01:00
twinaphex
526072ccdf
Cut down on menu_display_libretro_running usage
2017-01-20 14:25:00 +01:00
twinaphex
58a47e860a
Add use_rgba member to video_frame_info_t
2017-01-20 14:04:50 +01:00
twinaphex
5b89c85237
Fix performance inefficiency (Coverity)
2017-01-19 23:12:18 +01:00
twinaphex
bc5c2c13f8
Remove unused member
2017-01-19 23:09:50 +01:00
twinaphex
849315e844
Prevent some minor computations in video_monitor_get_fps
2017-01-19 18:07:01 +01:00
twinaphex
e0ff0541a2
Pass video_info pointer to font drivers
2017-01-19 16:30:40 +01:00
twinaphex
eea139ca30
Remove frame_count variable
2017-01-19 16:03:59 +01:00
twinaphex
028d50ca50
C89_BUILD fixes
2017-01-19 16:01:35 +01:00
Brad Parker
b44c8c9995
store buffer for window title, only update actual title when it changes
2017-01-19 00:33:52 -05:00
twinaphex
3761b5bdf6
Unroll video_driver_cached_frame_set
2017-01-19 02:34:35 +01:00
twinaphex
19cc817613
This needs to be set this way
2017-01-19 02:25:45 +01:00
twinaphex
b6c0e57946
Silence some warnings
2017-01-19 01:39:11 +01:00
twinaphex
57f1c0c3b6
FIx threaded video
2017-01-19 01:24:21 +01:00
twinaphex
f3e700aa76
Add width/height members to video_frame_info
2017-01-18 22:30:16 +01:00
Brad Parker
c089a925b1
fix race condition when toggling menu with threaded_video on
2017-01-18 16:23:56 -05:00
twinaphex
a6a4808e94
Refactor frame monitor code
2017-01-18 17:41:27 +01:00
Brad Parker
fa5404fc53
fix race condition when switching fullscreen with threaded_video on
2017-01-17 19:09:25 -05:00
twinaphex
e862abfe12
Initialize frame_count to 0
2017-01-18 00:54:36 +01:00
Brad Parker
a220815b40
fix race condition in frame count with video_threaded on
2017-01-17 18:42:58 -05:00
twinaphex
4fbd41852a
Revert "Don't manipulate buffer if we are fullscreen - no text writing"
...
This reverts commit 51976d496f
.
2017-01-18 00:26:56 +01:00
twinaphex
552144c24d
Revert "Make 'Show FPS" work again"
...
This reverts commit b433ccab09
.
2017-01-18 00:25:55 +01:00
twinaphex
b433ccab09
Make 'Show FPS" work again
2017-01-18 00:23:57 +01:00
twinaphex
51976d496f
Don't manipulate buffer if we are fullscreen - no text writing
...
to display window then or internal buffer
2017-01-18 00:18:27 +01:00
twinaphex
dbed4d4fc6
Add video_info->fullscreen
2017-01-17 23:54:24 +01:00
Brad Parker
05c37bd39f
initial GDI driver skeleton
2017-01-16 20:41:04 -05:00
twinaphex
9feb430b58
Don't pass video_info_t as pointer
2017-01-16 18:03:00 +01:00
twinaphex
c875d95f7a
Revert "Free font data inside gfx/font_driver.c's free function"
...
This reverts commit b3f1bbc15e
.
2017-01-14 21:02:30 +01:00
twinaphex
b3f1bbc15e
Free font data inside gfx/font_driver.c's free function
2017-01-14 14:26:56 +01:00
twinaphex
08e9f64e43
Get rid of early return in video_driver_build_info
2017-01-14 14:00:39 +01:00
twinaphex
326e1e3fac
Cleanup video_driver_frame
2017-01-14 13:55:49 +01:00
twinaphex
a4523e0b2b
Initialize variable
2017-01-13 18:17:36 +01:00
twinaphex
1fa3475d79
Add parameter to video_context_driver's 'init' function
2017-01-13 16:52:07 +01:00
twinaphex
8c9e0405fb
Create video_driver_build_info
2017-01-13 16:09:32 +01:00
twinaphex
24dc890b78
(gfx) Cleanups/style nit
2017-01-12 10:52:04 +01:00
twinaphex
0b03e95d95
We no longer need the settings struct inside gl_init
2017-01-10 18:08:05 +01:00
twinaphex
c086a18ceb
video_driver_frame_filter no longer needs to grab pointer to
...
settings
2017-01-09 15:46:40 +01:00
twinaphex
36fb6776b2
Don't grab settings pointer in video_monitor_get_fps function
2017-01-09 15:42:14 +01:00
twinaphex
35fefb1c09
Do away with yet more pointer grabbing of settings
2017-01-09 15:14:16 +01:00
twinaphex
6b3cc9068d
Pass video_info to swap_buffers too
2017-01-09 14:59:15 +01:00
twinaphex
be2f921ee2
Don't use settings pointer inside video_frame function
2017-01-09 14:25:59 +01:00
Twinaphex
faa8ddf413
Remove unused variables
2017-01-07 08:11:23 +01:00
twinaphex
bbcdc18801
Remove unused variables
2017-01-05 22:18:09 +01:00
Logan McNaughton
017d9cea9d
This fixes the XMB menu for me
...
When using threaded video and shared context
Threaded video gets disabled for GL contexts, so you can't rely on the settings value
2017-01-05 12:53:55 -08:00
twinaphex
c028f56016
Turn video_driver_is_threaded into a static function
2017-01-05 08:52:30 +01:00
twinaphex
e75633064a
Add 'Y button' callback function for input binds
2017-01-05 04:52:04 +01:00
twinaphex
b13d069578
- Silence Coverity warning in platform_linux.c
...
- Don't do settings lookup when calling runloop_msg_queue_push
2017-01-03 18:47:34 +01:00
twinaphex
9657bbd998
Get rid of set_rgba/unset_rgba inside image_texture.c
2016-12-29 23:22:40 +01:00
twinaphex
6a166faa0c
Revert "Remove supports_rgba varaible from image_texture.c"
...
This reverts commit bd0c97fdc4
.
2016-12-29 22:53:10 +01:00
twinaphex
bd0c97fdc4
Remove supports_rgba varaible from image_texture.c
2016-12-29 22:39:52 +01:00
twinaphex
f067ecce50
(video_driver.c) Cleanups
2016-12-27 14:48:04 +01:00
twinaphex
77e5cdbfde
Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
...
This reverts commit ad7386913c
.
2016-12-22 23:36:11 +01:00
twinaphex
b07fd17258
Revert "Initialize message queue first"
...
This reverts commit b0c97e901f
.
2016-12-22 23:34:21 +01:00
Brad Parker
42307a322a
missing ../
2016-12-22 11:25:49 -05:00
twinaphex
b0c97e901f
Initialize message queue first
2016-12-22 14:31:19 +01:00
twinaphex
ad7386913c
Rename runloop_msg_queue_push to video_driver_msg_queue_push
...
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
twinaphex
97c9eab9ba
(menu_displaylist.c) Indenting breaks syntax formatting for vim
2016-12-15 08:36:28 +01:00
twinaphex
6200c3a1e0
Clean up mutex functions
2016-12-07 08:51:38 +01:00
twinaphex
a12d0d082d
Move input_translate_coord_viewport to video_driver.c
2016-12-07 08:07:11 +01:00
twinaphex
94528ed28d
(Drivers) Cleanups/style nits
2016-12-05 02:09:32 +01:00
twinaphex
9e2717e927
Revert "Create drivers_data array and no longer use recording_data"
...
This reverts commit e049b7e1f0
.
2016-12-05 02:02:59 +01:00
twinaphex
e049b7e1f0
Create drivers_data array and no longer use recording_data
2016-12-05 01:56:06 +01:00
twinaphex
eea1b3790b
Try to prevent superfluous calls to recording functions
...
if not necessary
2016-12-04 06:31:29 +01:00
twinaphex
0284853681
(xbox OG) Use flicker_filter_index
2016-12-02 01:04:46 +01:00
Brad Parker
ba54f20626
initial libcaca video driver
2016-12-01 12:13:45 -05:00
radius
8a16ec393c
remove WIN32 ifdefs
2016-11-23 20:37:29 -05:00
radius
8cb5ed0d95
(win) add fixed window size mode
2016-11-23 19:43:50 -05:00
twinaphex
b93c759d3c
(gfx/video_driver.c) Simplifications
2016-11-21 13:31:04 +01:00
twinaphex
6c3a5fe634
Buildfix
2016-11-21 13:23:36 +01:00
twinaphex
05d6735720
Simplify video_driver.c code - turn some functions into macros
2016-11-21 13:17:28 +01:00
twinaphex
69b57bad34
Fix comment
2016-11-20 15:23:43 +01:00
twinaphex
a7585f9988
Move video_frame.h to libretro-common
2016-11-08 15:35:24 +01:00
twinaphex
279a90a01b
Remove dependencies from gfx/video_frame.c
2016-11-08 15:26:15 +01:00
twinaphex
7e5d2321c5
Create video_driver_reinit
2016-11-06 14:18:29 +01:00
twinaphex
feacc56fff
Prevent crash by checking if msg is NULL before doing strlcpy call
2016-11-06 14:10:25 +01:00
twinaphex
9a87dabca1
One less leaf function inside video_driver_frame
2016-11-06 14:06:47 +01:00
twinaphex
fbcefd02b9
(video_driver.c) Copy message if runloop_ctl returns true
2016-11-06 14:05:00 +01:00
twinaphex
49893c10f5
Prevent early returns for video_frame_pixel_scale
2016-11-06 13:57:27 +01:00
twinaphex
483cd0077c
Move code
2016-11-06 13:42:34 +01:00
twinaphex
777f2df35c
Remove video_driver_unset_active
2016-11-06 13:38:31 +01:00
twinaphex
8acb4cac78
video_driver_frame_filter - make early returns unnecessary
2016-11-06 13:34:48 +01:00
twinaphex
ea46c4a532
Turn video_driver_lock functions static
2016-11-04 14:16:55 +01:00
twinaphex
5214c29295
gfx/video_driver.c - get rid of struct
2016-11-03 23:03:50 +01:00
twinaphex
01bbca9c95
Cleanup
2016-10-28 08:23:54 +02:00
aliaspider
a4d745a471
preliminary port to the wiiu platform
2016-10-27 01:34:10 +01:00