Commit Graph

623 Commits

Author SHA1 Message Date
twinaphex
892c0a6f52 Create menu/widgets/menu_list 2016-09-15 00:10:37 +02:00
Twinaphex
09ccef1684 Merge pull request #3547 from nguillaumin/wip-screensaver-dbus
WIP: Fixes #2026 Screensaver suspend on Linux via Dbus
2016-09-14 15:48:43 +02:00
twinaphex
056cc8ece8 Move menu_popu.c to menu/widgets 2016-09-11 21:03:31 +02:00
twinaphex
d3f7bf8527 Move video_state_python to gfx/drivers_tracker 2016-09-11 17:59:10 +02:00
Nicolas Guillaumin
05df632bd8 WIP: Fixes #2026 Screensaver suspend on Linux via Dbus
One some systems (tested with Gnome 3 on Arch Linux) the current method
of using `xdg-screensaver` to suspend the screensaver does not work.
Instead, using DBus to issue an `Inhibit` request is recommended.

The request returns a cookie that needs to be re-used to un-inhibit the
screensaver later. Additionally if the DBus connection is closed the
current inhibition is discarded. Thus, the DBus connection needs to stay
connected for the duration of the screenshot inhibition.

The code is heavily inspired from the [SDL 2.x
code](http://hg.libsdl.org/SDL/file/default/src/core/linux/SDL_dbus.c#l172).
I didn't call the SDL 2 code though since this it to fix the issue with
the GL driver, and I assume one would want to have screensaver inhibited
even when SDL 2 is not available (but GL is).

I've set "WIP" because:
* I haven't done C in a long time so my code is probably not great
* There's a dependency on DBus which I don't know is acceptable or
not
* I've put my code where I could to check it works, but `x11_common` may
not be the best place
* The code need and "init" and "deinit" kind of method as it needs to
initialise the DBus connection, and on deinit close it properly. I've
used `x11_connect` and `x11_window_destroy` but they don't sound like
the best choices.
* I'm a bit unclear as to what happens when "suspend screensaver" is
ticked on/off in the menu. This doesn't seem to call
`x11_suspend_screensaver` everytime, so I'm not sure if there's a hook
somewhere (as disabling screensaver suspend in the menu should cause a
DBus unhinibit request to be sent).
* Should I just call the SDL 2.x code (meaning that the GL driver would
depend on SDL 2.x at runtime)?

So, first of all are you ok with the approach, and if yes I'd gladly get
feedback about the code, how to architecture it and the best place to
put it.

Thanks!
2016-09-08 15:23:41 -07:00
Alcaro
e243614db8 Create half-broken XShm driver, to perform evil experiments on 2016-09-07 13:39:00 +02:00
twinaphex
e6a114a95a Create gfx/video_frame.c 2016-09-06 23:41:09 +02:00
twinaphex
266a06ffb1 Revert "Expose GPU Hard Sync for GLES 3 too"
This reverts commit a74813c9ea.
2016-09-05 21:43:02 +02:00
twinaphex
a74813c9ea Expose GPU Hard Sync for GLES 3 too 2016-09-05 21:16:30 +02:00
twinaphex
7af3b79416 Create gl_capabilities.c/gl_capabilities.h 2016-09-05 07:04:56 +02:00
twinaphex
9c897e262b Create menu_popup.c 2016-09-04 22:58:54 +02:00
twinaphex
429165e966 Combine autoconfig builtin files into one 2016-09-03 07:39:26 +02:00
twinaphex
49d52b8ca2 Buildfix 2016-09-03 07:02:37 +02:00
twinaphex
9df9b79869 Add builtin_sdl2 2016-09-03 07:02:17 +02:00
twinaphex
b6daaed566 Rename git_version.c to version_git.h, create separate
version.h file
2016-09-01 17:49:28 +02:00
vanfanel
b9ff4c91bd Correct drm headers path for the plain_drm driver 2016-08-31 11:59:29 +02:00
twinaphex
9af900a1d1 Create setting_list.c/setting_list.h 2016-08-29 03:07:33 +02:00
orbea
698579c2b5 Shorten HAVE_VULKAN_KHR_DISPLAY 2016-08-27 16:48:13 -07:00
Alcaro
dd7caa4ad4 Wipe out this flag, not needed anymore. 2016-08-26 17:47:46 +02:00
Brad Parker
2e4fd540ac re-enable UTF-8 by default, inline utf8_walkbyte, fix missing ifdef in utf8_walk 2016-08-24 10:56:00 -04:00
Brad Parker
30e99927d2 undo previous new files and use existing encoding_utf header 2016-08-23 19:16:18 -04:00
Brad Parker
d063cb9283 do not make UTF-8 the default, simplify/centralize the common string functions, make sure rgui/materialui use utf8 strlen when available 2016-08-23 19:00:53 -04:00
Brad Parker
35e67e69e5 Initial utf8 support for rgui/xmb. Only supports first 256 codepoints due to current freetype atlas limitation 2016-08-23 14:49:44 -04:00
vanfanel
e5965c7870 Fix plain_drm driver compilation 2016-08-22 14:23:17 +02:00
Alcaro
3899984bbb Fix pseudolocalization 2016-08-20 23:38:24 +02:00
twinaphex
ad3a4311ee Add msg_hash_jp 2016-08-20 21:37:03 +02:00
Jean-André Santoni
4228e3dcc3 Revert "Reworked xmb driver to allow tab hiding"
This reverts commit 069a9cbfe6.
2016-08-18 14:06:54 +02:00
Ghost Coder
069a9cbfe6 Reworked xmb driver to allow tab hiding 2016-08-17 11:28:42 -05:00
Logan McNaughton
47227c829b GLES3 fixes 2016-08-06 21:45:35 -06:00
twinaphex
fda2495021 Get rid of HAVE_ZLIB_DEFLATE - implicitly enable it 2016-08-02 15:34:48 +02:00
twinaphex
a8e74f0aa2 (GL) Start moving renderchain code over to separate files 2016-08-02 02:27:23 +02:00
Higor Eurípedes
8752313961 (gfx) Add OSMesa context 2016-08-02 02:16:02 +02:00
twinaphex
8d186dab88 Relocate D3D drivers 2016-08-01 22:05:57 +02:00
twinaphex
6742e135c9 Create HAVE_VIDEO_PROCESSOR ifdef 2016-07-28 20:01:38 +02:00
twinaphex
afee38109d Start integrating video processor code 2016-07-28 19:10:18 +02:00
twinaphex
1c40598da4 Add HAVE_BUILTINZLIB - can now add baked-in zlib 2016-07-21 09:15:51 +02:00
Alcaro
979c6d003e C90 sets C89 and should not be used 2016-07-15 15:40:52 +02:00
Alcaro
6af35e8739 Expand those tabs 2016-07-15 15:40:06 +02:00
twinaphex
bcf74d9685 Start adding menu_cbs_label.c 2016-07-08 16:24:05 +02:00
twinaphex
80e3170e93 (BSD) Add frontend/drivers/platform_bsd.c 2016-07-08 13:30:05 +02:00
Hans-Kristian Arntzen
cd4ff2eac8 Move KHR_display backend behind configure flag.
Enabled by default since it is technically not platform specific.
2016-07-07 22:05:57 +02:00
Hans-Kristian Arntzen
d382e1069e Basic VK_KHR_display integration works! :) 2016-07-07 19:28:27 +02:00
twinaphex
5d70242dee Check against libdrm version 2.4.68 in order to enable/disable
plain DRM video driver
2016-07-03 22:08:56 +02:00
twinaphex
d53cbfbdfb Backport DRM video driver 2016-07-03 10:37:07 +02:00
twinaphex
097b02a8a1 Add compilation of vector_2/vector_3 2016-06-27 10:56:30 +02:00
twinaphex
00ff63e0bb Add NEED_CXX_LINKER 2016-06-26 21:26:21 +02:00
Hans-Kristian Arntzen
54c1759f45 Vulkan: Make a more general purpose symbol loader.
Avoids painful manual loading and wrapping function pointers everywhere
...

Reusable for cores, so move to libretro-common.
Also update built-in Vulkan headers.
2016-06-26 13:10:58 +02:00
Hans-Kristian Arntzen
596cd320c6 Vulkan: Update SPIRV-Cross and glslang. 2016-06-25 14:44:56 +02:00
Hans-Kristian Arntzen
07880e3f45 Vulkan: Begin hooking up validation layers.
Found lots of regressions due to bad reformatting.
2016-06-25 13:52:33 +02:00
twinaphex
560f8dda60 Remove tasks_internal.c - no longer needed 2016-06-20 06:02:50 +02:00