[X2Go-Commits] [x2gokdrive] 06/07: Spot more commented out code section and use double-slashes for commenting them out.

git-admin at x2go.org git-admin at x2go.org
Wed Jul 17 00:55:14 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gokdrive.

commit d197e257883ef7d5bc98aa9f8db73847181e385f
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Jul 17 00:43:12 2019 +0200

    Spot more commented out code section and use double-slashes for commenting them out.
---
 x2gokdrive.c          | 32 ++++++++++++++++----------------
 x2gokdriveselection.c | 19 +++++++++----------
 2 files changed, 25 insertions(+), 26 deletions(-)

diff --git a/x2gokdrive.c b/x2gokdrive.c
index 151b68d..306b828 100644
--- a/x2gokdrive.c
+++ b/x2gokdrive.c
@@ -100,21 +100,21 @@ ephyrScreenInitialize(KdScreenInfo *screen)
 
     EPHYR_DBG("Init screen");
 
-/*
-    if (EphyrWantGrayScale)
-        screen->fb.depth = 8;
 
-    if (screen->fb.depth && screen->fb.depth != 0) {
-        if (screen->fb.depth < 0
-            && (screen->fb.depth == 24 || screen->fb.depth == 16
-                || screen->fb.depth == 8)) {
-            scrpriv->server_depth = screen->fb.depth;
-        }
-        else
-            ErrorF
-                ("\nXephyr: requested screen depth not supported, setting to match hosts.\n");
-    }
-*/
+//    if (EphyrWantGrayScale)
+//        screen->fb.depth = 8;
+//
+//    if (screen->fb.depth && screen->fb.depth != 0) {
+//        if (screen->fb.depth < 0
+//            && (screen->fb.depth == 24 || screen->fb.depth == 16
+//                || screen->fb.depth == 8)) {
+//            scrpriv->server_depth = screen->fb.depth;
+//        }
+//        else
+//            ErrorF
+//                ("\nXephyr: requested screen depth not supported, setting to match hosts.\n");
+//    }
+
     screen->fb.depth = 24;
     screen->rate = 72;
 
@@ -563,8 +563,8 @@ ephyrRandRSetConfig(ScreenPtr pScreen,
     pScrPriv = rrGetScrPriv(pScreen);
 
     EPHYR_DBG("RANDR SET CONFIG, LET'S CHECK OUR RANDR SETTINGS");
-    /*EPHYR_DBG("OUTPUTS: %d, CRTCS: %d, SIZES: %d, MODES %d" , pScrPriv->numOutputs,
-              pScrPriv->numCrtcs, pScrPriv->nSizes, pScrPriv->outputs[0]->numModes);*/
+//    EPHYR_DBG("OUTPUTS: %d, CRTCS: %d, SIZES: %d, MODES %d" , pScrPriv->numOutputs,
+//              pScrPriv->numCrtcs, pScrPriv->nSizes, pScrPriv->outputs[0]->numModes);
 
     if (pScrPriv->nSizes)
     {
diff --git a/x2gokdriveselection.c b/x2gokdriveselection.c
index 33dba70..fac738a 100644
--- a/x2gokdriveselection.c
+++ b/x2gokdriveselection.c
@@ -273,17 +273,16 @@ static BOOL find_image_atom(const Atom list[], size_t size)
 
 }
 
-/*
-static void listAtoms(const Atom list[], size_t size)
-{
-    size_t i;
+//static void listAtoms(const Atom list[], size_t size)
+//{
+//    size_t i;
+//
+//    for (i = 0;i < size;i++)
+//    {
+//        EPHYR_DBG("%d:%s", list[i], NameForAtom( list[i]));
+//    }
+//}
 
-    for (i = 0;i < size;i++)
-    {
-        EPHYR_DBG("%d:%s", list[i], NameForAtom( list[i]));
-    }
-}
-*/
 static Bool prop_has_atom(Atom atom, const Atom list[], size_t size)
 {
     size_t i;

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdrive.git


More information about the x2go-commits mailing list