Nathan S
775c272029
Menu widgets stuff + vulkan sanity check ( #8710 )
...
* task_screenshot: fix hang with menu widgets
* word_wrap: add max_lines parameter
* vulkan: better instance creation sanity check
2019-05-06 21:10:57 +02:00
twinaphex
68e91e3121
video_display_server_get_flags - conditional was wrong
2019-05-06 13:18:25 +02:00
twinaphex
0b426b2022
This should hide the CRT SwitchRes option on systems
...
where it's not supported
2019-05-05 16:33:25 +02:00
twinaphex
360f8189e0
(D3D8/D3D9) Screenshots don't seem to work, disabling
2019-05-05 14:25:16 +02:00
twinaphex
f349410082
(CTR/3DS) hide 'Take Screenshot' since screenshots are not implemented
...
anyway
2019-05-05 14:14:14 +02:00
twinaphex
3b110c0e3b
(D3D8) Add 'Screenshots supported'
2019-05-05 13:55:12 +02:00
twinaphex
c3d2b190f2
(dispmanx) Implement get_flags
2019-05-05 13:49:06 +02:00
twinaphex
a0b2d97ca3
Hide 'Take Screenshot' for video drivers that don't support
...
taking screenshots yet
2019-05-05 13:46:26 +02:00
orbea
9e9849170d
Silence unused function with --disable-menu.
...
gfx/drivers/gl_core.c:1529:13: warning: ‘gl_core_draw_menu_texture’ defined but not used [-Wunused-function]
static void gl_core_draw_menu_texture(gl_core_t *gl, video_frame_info_t *video_info)
^~~~~~~~~~~~~~~~~~~~~~~~~
2019-05-04 08:26:49 -07:00
natinusala
636f2ddb28
menu_widgets: implement the user setting
2019-05-03 21:25:20 +02:00
twinaphex
8b0f083a4e
(UWP) UWP cannot deal with relative paths, turn them into absolute
...
paths first before reading shader pass files
2019-05-02 18:24:54 +02:00
twinaphex
066643ac6e
(GX2) Buildfix
2019-05-01 00:11:43 +02:00
twinaphex
29b8ddef28
Move video_driver_menu_settings
2019-05-01 00:09:49 +02:00
twinaphex
39eadbab6f
Use string_concat in more performance critical areas
2019-04-30 21:17:51 +02:00
twinaphex
4b22522ae0
We need faster string concatenation for performance-critical
...
codepaths - this is being run every frame
2019-04-30 19:36:40 +02:00
twinaphex
bc2bdd5734
config_file_read not needed anymore
2019-04-30 13:37:10 +02:00
twinaphex
e76a8e6a75
(Apple/STB) Add Apple to STB unicode
2019-04-30 11:40:06 +02:00
twinaphex
c2f95940fb
(GL1) Whether GL1 driver has windowed mode support or not
...
depends on the video context driver and not the video driver itself
2019-04-29 07:21:37 +02:00
twinaphex
4c3e0d44b8
Revert "Start using string_is_equal_memcmp and"
...
This reverts commit 26d6aee1eb
.
2019-04-29 04:04:33 +02:00
twinaphex
26d6aee1eb
Start using string_is_equal_memcmp and
...
string_is_equal_memcmp_fast
2019-04-28 17:23:11 +02:00
twinaphex
8784d21c74
(STB) WinRT/UWP can't deal with relative paths, so don't look for
...
osd-font.ttf
2019-04-28 07:24:34 +02:00
twinaphex
2c47d571aa
Use path_is_valid instead of filestream_exists when we only
...
need to know if a file exists on the filesystem
2019-04-27 14:01:50 +02:00
twinaphex
3e72c502a8
strlen optimizations :
...
- use STRLEN_CONST for constant strings, translates to sizeof
which should be computed at compile-time
- found some places where we are needlessly calling strlen two
times instead of just once
2019-04-27 04:21:10 +02:00
twinaphex
1f53eea4ee
(Cocoa GL/GLES) Set this flag for OpenGLES
2019-04-26 02:27:48 +02:00
twinaphex
ff40ae2486
Refactor slang_preprocess.cpp - try to remove auto variables
2019-04-25 04:07:18 +02:00
twinaphex
a42b8f616f
(slang reflection) Cleanups - start getting rid of most auto
...
variables
2019-04-25 03:54:04 +02:00
twinaphex
0bae77d199
(Shaders Vulkan/GLcore) Cleanups
2019-04-25 02:37:13 +02:00
twinaphex
15afaedaa8
(Shaders vulkan/GLcore) Simplify
2019-04-25 02:34:26 +02:00
twinaphex
e40c3ec07b
(Shader Vulkan/GL core) Make code more the same
2019-04-25 01:42:56 +02:00
twinaphex
55b53929db
(shader GL/Vulkan) Cleanups
2019-04-24 23:45:57 +02:00
twinaphex
604403fe90
(shader_vulkan) Simplifications - start making shader_gl_Core
...
and shader_vulkan more alike
2019-04-24 23:13:42 +02:00
twinaphex
e42dae928e
(gl shader core) Simplifications
2019-04-24 22:20:48 +02:00
twinaphex
51a69dff44
(gl core shaders) Simplification
2019-04-24 22:10:21 +02:00
twinaphex
3225876f0b
(shader_gl_core.cpp) Simplify
2019-04-24 20:25:37 +02:00
twinaphex
a60844897f
(Shader GL core) Simplify some code
2019-04-24 04:24:48 +02:00
Twinaphex
e9bbc8d8dd
(gl_core.c) Remove unused variable
2019-04-24 03:49:34 +02:00
twinaphex
c55873c324
(GL_CORE) More updates
2019-04-24 03:33:32 +02:00
twinaphex
59b45f7812
Start making HAVE_OPENGL_CORE independent
2019-04-24 03:23:57 +02:00
twinaphex
a6e18f23a8
(stb font unicode) Put MSVC check in again - MSVC 2005 and up get
...
Unicode STB font
2019-04-23 00:35:04 +02:00
twinaphex
31c7abce64
(MSVC 2003) Fonts now show up for GL
2019-04-22 23:30:24 +02:00
twinaphex
c4d99586ba
(MSVC 2003) Compile in STB unicode for MSVC 2003
2019-04-22 23:07:10 +02:00
twinaphex
04d062b3d4
(MSVC2003) Enable HAVE_OPENGL1; make HAVE_OPENGL1 independent from
...
HAVE_OPENGL
2019-04-22 22:48:23 +02:00
twinaphex
146b4ccc50
Use config_file_read in more places
2019-04-22 02:20:04 +02:00
twinaphex
317a443741
Use config_file_read in more places
2019-04-22 02:10:12 +02:00
twinaphex
955a149ce9
Use config_file_read where we can assume we are reading a file
2019-04-22 01:56:24 +02:00
orbea
1e86824e96
wayland: Fix build.
...
Fixes https://github.com/libretro/RetroArch/issues/8614
2019-04-21 08:11:26 -07:00
twinaphex
7372bafb44
Remove RARCH_CTL_SET_LIBRETRO_PATH
2019-04-21 06:03:02 +02:00
twinaphex
8e638f435a
(Wayland) wl_array_for_each macro fails with CXX_BUILD - have to
...
roll our own macro instead doing it right
2019-04-20 20:33:22 +02:00
twinaphex
499235cd40
(CXX_BUILD) Another buildfix
2019-04-20 19:55:50 +02:00
twinaphex
7b3be5eddf
(wayland) Fix some CXX_BUILD issues; possibly not all
2019-04-20 18:42:23 +02:00
Brad Parker
e7dbac7eb0
prevent null derefs found by scan-build
2019-04-18 11:46:53 -04:00
jdgleaver
a9a5782cc0
(3DS) Fix screen tearing when running 50Hz content
2019-04-16 15:44:47 +01:00
jdgleaver
54e1711f9a
(3DS) Sanitise/Improve display mode selection
2019-04-15 17:05:55 +01:00
Brad Parker
95145ec0d4
remove debug code
2019-04-12 21:17:04 -04:00
twinaphex
3619fae2d9
(LGTM) Silence some warnings
2019-04-13 02:15:26 +02:00
Brad Parker
b8471aa3dc
gl1: add gpu hard sync support and print osd statistics
2019-04-12 19:28:34 -04:00
Huw Pascoe
fed06044c4
silence warnings
2019-04-12 17:32:11 +01:00
natinusala
f941d4e625
menu widgets: add first achievement notification widget
2019-04-11 16:46:41 +02:00
twinaphex
702c889cd1
(D3D10/11/12) Menu widgets can now appear ingame
2019-04-11 02:22:21 +02:00
jdgleaver
136762f6a2
Fix text display issues when using Japanese (and other unicode-dependent language) text with stb_unicode
2019-04-09 15:51:33 +01:00
Themaister
f82601c4a8
glcore: Fix GLES build.
2019-04-08 21:17:13 +02:00
twinaphex
e206230a89
(Linux) Use STB unicode font renderer for Linux
2019-04-08 20:12:22 +02:00
twinaphex
0af7167586
(GL1) Add menu widgets support
2019-04-08 18:58:26 +02:00
Twinaphex
4d429ea4d8
Merge pull request #8562 from jdgleaver/stb-fonts
...
Fix text alignment when using stb_unicode
2019-04-08 18:43:59 +02:00
twinaphex
c12e8dea07
(D3D10/11) All struct members are already being set
2019-04-08 18:42:52 +02:00
jdgleaver
38d2febba5
Fix text alignment when using stb_unicode
2019-04-08 17:37:23 +01:00
natinusala
7a3caf82d0
menu widgets: reimplement FPS counter
2019-04-08 17:06:04 +02:00
jdgleaver
4065dbf18e
(Menu Widgets) Fix text alignment issues for ctr, metal and vita2d drivers
2019-04-08 15:13:19 +01:00
jdgleaver
9fff07e589
(Menu Widgets) Fix text alignment issues with Vulkan and D3D video drivers
2019-04-08 13:35:35 +01:00
Brad Parker
9579804c72
gl1: add overlay support
2019-04-05 23:07:59 -04:00
Brad Parker
48dc251303
gl1: add scissor reset from gl
2019-04-05 18:17:11 -04:00
twinaphex
a5aa4d731b
Use memset instead of bzero
2019-04-03 16:56:50 +02:00
twinaphex
ab33d16da1
Small cleanup
2019-04-03 16:33:16 +02:00
twinaphex
25ba8f4ab0
(GL1) GL1.x won't have mipmapping support
2019-04-03 16:13:01 +02:00
stellarporter
11e4b0b6ef
gfx video filters: blargg ntsc snes conflicts
...
emscipten: avoid global symbol multiply defined error (core compiling its own snes_ntsc.c library)
2019-03-23 20:22:21 -05:00
orbea
3fb4ed753d
Fix caca warning.
...
One too many lines were removed in
commit f67bfa24ef
.
2019-03-19 21:54:51 -07:00
twinaphex
cd75045792
Simplify video_driver_frame - simplify FPS reporting printout
2019-03-19 16:03:19 +01:00
twinaphex
4fb95db80b
Simplify video_driver_frame
2019-03-19 04:32:36 +01:00
twinaphex
46dc4508f4
Buildfix for Cg
2019-03-18 16:32:46 +01:00
twinaphex
794f9c8968
(GL) Add comments
2019-03-18 16:02:28 +01:00
twinaphex
7c93da1360
(GL2) Simplifications
2019-03-18 15:57:43 +01:00
twinaphex
819016b00c
Move video_shader_driver_init to gl.c
2019-03-18 15:52:21 +01:00
twinaphex
27928081cf
Cleanups
2019-03-18 15:27:37 +01:00
twinaphex
f67bfa24ef
Get rid of video_poke_interface set_mvp
2019-03-18 15:19:11 +01:00
twinaphex
fe1255094f
Get rid of now unused set_coords in video_driver_poke_interface
2019-03-18 05:04:23 +01:00
twinaphex
03641f2378
(GL1) Cleanups
2019-03-18 04:50:50 +01:00
twinaphex
ab814efc62
(GL raster font) Don't have to call video_driver_set_coords/
...
video_driver_set_mvp anymore
2019-03-18 04:46:27 +01:00
Brad Parker
a8a06d498c
gl1: fix matrix not loading when threaded video is on
2019-03-17 12:46:01 -04:00
Francisco Javier Trujillo Mata
adf2743464
Implement CDFS and custom file descriptor support
2019-03-15 20:19:14 +01:00
Themaister
e3a88e8806
glcore: Set frame count in shader interface.
2019-03-15 15:36:18 +01:00
twinaphex
c8eb85ec2e
Implement gl_core_wrap_type_to_enum
2019-03-14 20:04:04 +01:00
Hugo Hromic
b10a318f16
(dispserv_x11.c) Silence warning
2019-03-14 16:13:09 +00:00
Hugo Hromic
136c08a4bb
(x11_common.c) Fix C89 build
2019-03-14 16:09:34 +00:00
twinaphex
643cd1923e
CXX_BUILD / C89_BUILD buildfixes
2019-03-14 14:14:44 +01:00
Brad Parker
8064672f11
gl: set shader data to null after deinit
2019-03-13 16:22:04 -04:00
twinaphex
d744ed4666
Reimplement video_shader_is_supported
2019-03-13 20:39:36 +01:00
twinaphex
57e11a10e7
Reimplement video_shader_get_type_from_ext
2019-03-13 20:32:19 +01:00
Brad Parker
97247dbaec
gl1: check for vender/renderer was in the wrong place
2019-03-13 14:44:03 -04:00
Themaister
beff1144f6
Fix uniform override mistake in glcore shader stack.
...
glGetUniformLocation returned -1 after 0, and dropped uniforms on the
floor.
2019-03-13 18:28:05 +01:00
Themaister
ecc7bc0cf2
Fix compile error and flag errors on X/Wayland.
2019-03-13 18:27:44 +01:00
twinaphex
3691f4fabf
Fix CXX_BUILD errors
2019-03-13 17:00:52 +01:00
Twinaphex
dd5eca0f46
(OSX) Buildfix
2019-03-13 14:31:03 +01:00
twinaphex
b347b26d61
Reimplement shader flags being set - GL core should have only
...
Slang support and no GLSL, with the GL2 driver it is dependent
on the context driver
2019-03-13 14:06:50 +01:00
twinaphex
cd77093588
Reimplement gl2_get_flags to no longer be reliant on shader driver's
...
get flags implementation
2019-03-13 12:12:02 +01:00
Twinaphex
1a8b185c5e
Merge pull request #8455 from Tatsuya79/patch-1
...
glcore, fix rotation
2019-03-13 11:38:41 +01:00
Twinaphex
6a31f87a85
Merge pull request #8457 from phcoder/kbdwl
...
wayland: fix keyboard handling.
2019-03-13 11:34:26 +01:00
twinaphex
191d0c0309
Add get_flags to GL shader interface
2019-03-13 11:21:00 +01:00
twinaphex
365053266f
Add more flags
2019-03-13 11:04:52 +01:00
twinaphex
2c024f400e
Start hooking up extra shader capability stats - not done yet
2019-03-13 00:54:11 +01:00
Vladimir Serbinenko
2d5715b807
wayland: fix keyboard handling.
...
This bug interferes with my BK-0010 libretro port.
2019-03-12 23:49:46 +01:00
Tatsuya79
16681653b4
glcore, fix rotation
2019-03-12 22:32:47 +01:00
twinaphex
3d06b4aee2
Add comment about hack
2019-03-12 21:47:35 +01:00
cold-brewed
8a6de4adfb
(macOS) Add temporary GL hack
2019-03-11 19:16:59 -04:00
twinaphex
6ba6f9e3ec
(D3D9) Some buildfixes for C89
2019-03-11 17:07:49 +01:00
twinaphex
104508a29c
(GL core) Fix menu widgets
2019-03-11 14:57:25 +01:00
Twinaphex
75102a435f
Merge pull request #8437 from DSkywalk/master
...
X11 auto-repeat event fixed
2019-03-10 23:17:53 +01:00
David Skywalker
83e7fda272
sorry, fixed typo.
2019-03-09 21:29:21 +01:00
Themaister
1d0b3b96e6
Be a bit more pedantic about which contexts are active.
2019-03-09 20:53:29 +01:00
David Skywalker
46036894d4
fix x11 auto-repeat event
2019-03-09 19:06:01 +01:00
Themaister
37298876fc
Clear out FBO on startup.
...
Some cores seem to rely on it?
2019-03-09 13:15:14 +01:00
Themaister
1ba8c626ed
Minor build fixes.
2019-03-09 12:42:23 +01:00
Themaister
4bb17fd6e9
Fix wrong condition for hard sync.
2019-03-09 12:42:11 +01:00
Themaister
07bf62eaba
GLcore: Actually bind depth/stencil RT to HW fbo.
2019-03-09 12:30:49 +01:00
Themaister
d9b245ce66
Swap order of drivers gl2/glcore.
2019-03-09 12:30:49 +01:00
Themaister
74039617ce
Use correct context flags.
2019-03-09 12:30:49 +01:00
Themaister
4adf16b5ed
Fix version detection for non-HW cores.
2019-03-09 12:30:49 +01:00
Themaister
3029f96511
Add a new "glcore" driver with slang support.
...
This driver should sunset the old gl2 driver, but that driver will
likely live on to support really ancient and terrible GL stacks.
All the worst legacy cruft has been ripped out, and it's almost a decent
backend now.
Requirements for slang are GL 3.2+ or GLES3.
Some shaders require features which are not directly compatible with
GLES2 or legacy GL.
This driver shares a lot of concepts from the Vulkan driver.
The slang shader stack and SPIRV-Cross are used to implement the shader
spec, and the menu shaders are also shared with Vulkan.
2019-03-09 12:30:49 +01:00
Brad Parker
9279d06f93
Merge branch 'master' into send_debug
2019-03-07 19:23:41 -05:00
Brad Parker
10df615d14
add "Send Debug Info" option under Help
2019-03-07 19:17:54 -05:00
Francisco Javier Trujillo Mata
652300f674
[PS2] Fixed memory leaks in the ps2_font
2019-03-07 00:14:59 +01:00
Francisco Javier Trujillo Mata
8316d073bc
[PS2] Implement Pitch support in the ps2_gfx
2019-03-03 14:08:12 +01:00
Brad Parker
a09e110d24
VC6 cannot cast uint64 to double, use int64 instead
2019-03-01 09:10:05 -05:00
twinaphex
ebae7ebc79
Input driver - Get rid of 'own driver' mechanism
2019-02-27 17:17:34 +01:00
twinaphex
829aedc6e2
(Video/Audio) Remove 'own driver' mechanism
2019-02-27 17:09:15 +01:00
Brad Parker
433cbb021f
temporary crash fix
2019-02-26 23:37:08 -05:00
Brad Parker
4ec71da9a9
x11: using_global_dpy is not restricted to xrandr
2019-02-26 23:37:08 -05:00
Twinaphex
d619f14839
Merge pull request #8375 from fjtrujy/feature/PS2DefaultDir
...
[PS2] Fix Load/Save state
2019-02-27 02:58:03 +01:00
Brad Parker
211515ece1
x11: open display ourself if global one is not available (e.g. with SDL)
2019-02-26 20:23:11 -05:00
Francisco Javier Trujillo Mata
0e7d5ed32b
Improvements regarding the ps2 font driver
2019-02-26 21:02:29 +01:00
driver1998
6ea79bca36
Allow winraw and xinput to work without dinput in Windows
...
Necessary for Windows ARM32 Desktop (RT)
2019-02-26 21:29:43 +08:00
Hugo Hromic
8984702ba8
(dispserv_x11.c) add missing defines and clean-up code
...
* Removed redundant and unused variables
* Use multiples of eight for array sizes
* Styled code for consistency with the rest
* Quoted string arguments in shell commands
* Added missing `HAVE_XRANDR` define checks
2019-02-23 20:58:51 +00:00
Brad Parker
97b7512420
restore initial screen orientation on exit for x11/win32
2019-02-23 14:15:36 -05:00
Twinaphex
adc9ecf4cc
Merge pull request #8335 from natinusala/master
...
Reintroduce menu widgets (only runloop_msg_queue for now)
2019-02-23 14:22:31 +01:00
Brad Parker
76ca37aaee
x11: implement screen orientation support
2019-02-22 19:13:36 -05:00
Brad Parker
4f0d61a2ac
update copyright
2019-02-22 19:13:36 -05:00
Brad Parker
8e14d1dd87
whitespace
2019-02-22 19:13:36 -05:00
Brad Parker
477d46d52b
update copyright
2019-02-22 19:13:36 -05:00
twinaphex
292c5e93ad
Add d3d9_menu_widgets_enabled
2019-02-22 03:13:41 +01:00
Twinaphex
0778847062
Merge pull request #8341 from fjtrujy/feature/PS2AudioImprovement
...
[PS2] Audio improvement
2019-02-22 01:48:43 +01:00
Francisco Javier Trujillo Mata
7ec160f860
Remove the specific audio thread
2019-02-22 00:01:36 +01:00