From bc0efac21f355a2c5c3a4b77cbffbfd3a4e16405 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Fri, 14 Jul 2023 18:56:50 +0800 Subject: [PATCH] cleanup --- etc/MiniGUI.cfg | 37 +++++++++++++++++++++++++++++-------- src/newgal/drm/drmvideo.c | 2 -- src/newgal/shadow/shadow.c | 2 -- 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/etc/MiniGUI.cfg b/etc/MiniGUI.cfg index 59eca87e..e00ce517 100644 --- a/etc/MiniGUI.cfg +++ b/etc/MiniGUI.cfg @@ -55,6 +55,29 @@ wallpaper_pattern_size=full # def_compositor_so= #}} +#{{ifdef _MGGAL_SHADOW +[shadow] +real_engine=pc_xvfb +defaultmode=800x600-16bpp + +# `cw`: rotating screen clock-wise. +# `ccw`: rotating screen counter clock-wise. +# `hflip`: flipping screen horizontally. +# `vflip`: flipping screen vertically. +rotate_screen=ccw + +# Whether the async. update is enabled. +# Use `true` or `yes` for enabled, anything else for disabled. +# Since 5.0.13. +async_update=yes + +# The synchronization interval for the asyn. updater (milli-seconds). +# This setting is only valid when `async_update` is enabled and +# the real engine does not provide WaitWBlank method. +# Since 5.0.13. +update_interval=15 +#}} + #{{ifdef _MGGAL_DRM [drm] defaultmode=1024x768-32bpp @@ -78,9 +101,14 @@ dpi=96 # Since 5.0.0. double_buffering=true +# The update interval for the asyn. updater (milli-seconds). +# This setting is only valid when drmWaitVBlank doesn't work correctly. +# Since 5.0.13. +update_interval=15 + # The filename of the shared library for the external driver. # The equivalent environment variable: MG_GAL_DRM_DRIVER -exdriver=libhidrmdrivers-0.2.so.0 +exdriver=libdrmdrivers.so #}} #{{ifdef _MGIAL_SINGLETOUCHKEY @@ -123,13 +151,6 @@ exec_file=/usr/local/bin/gvfb [rtos_xvfb] defaultmode=800x600-16bpp -#{{ifdef _MGGAL_SHADOW -[shadow] -real_engine=pc_xvfb -defaultmode=800x600-16bpp -rotate_screen=ccw -#}} - #{{ifdef _MGGAL_MLSHADOW [mlshadow] real_engine=qvfb diff --git a/src/newgal/drm/drmvideo.c b/src/newgal/drm/drmvideo.c index 94053a96..1aa72e9c 100644 --- a/src/newgal/drm/drmvideo.c +++ b/src/newgal/drm/drmvideo.c @@ -47,8 +47,6 @@ #include #include -#define _DEBUG - #include "common.h" #ifdef _MGGAL_DRM diff --git a/src/newgal/shadow/shadow.c b/src/newgal/shadow/shadow.c index f3e0220d..41025f89 100644 --- a/src/newgal/shadow/shadow.c +++ b/src/newgal/shadow/shadow.c @@ -56,8 +56,6 @@ #include #include -// #define _DEBUG - #include "common.h" #if __LINUX__