فهرست منبع

move some block comments

Fabian Peter Hammerle 7 سال پیش
والد
کامیت
879ec74806
1فایلهای تغییر یافته به همراه33 افزوده شده و 33 حذف شده
  1. 33 33
      scripts/xrandrl

+ 33 - 33
scripts/xrandrl

@@ -45,21 +45,21 @@ typedef unsigned short	SubpixelOrder;
 """
 SubpixelOrder = ctypes.c_ushort
 
-""" /usr/include/X11/extensions/Xrandr.h
-typedef struct _XRRScreenResources {
-    Time	timestamp;
-    Time	configTimestamp;
-    int		ncrtc;
-    RRCrtc	*crtcs;
-    int		noutput;
-    RROutput	*outputs;
-    int		nmode;
-    XRRModeInfo	*modes;
-} XRRScreenResources;
-"""
-
 
 class XRRScreenResources(ctypes.Structure):
+
+    """ /usr/include/X11/extensions/Xrandr.h
+    typedef struct _XRRScreenResources {
+        Time	timestamp;
+        Time	configTimestamp;
+        int		ncrtc;
+        RRCrtc	*crtcs;
+        int		noutput;
+        RROutput	*outputs;
+        int		nmode;
+        XRRModeInfo	*modes;
+    } XRRScreenResources;
+    """
     _fields_ = [
         ('timestamp', Time),
         ('configTimestamp', Time),
@@ -71,28 +71,28 @@ class XRRScreenResources(ctypes.Structure):
         ('modes', ctypes.c_void_p),  # ctypes.POINTER(XRRModeInfo)
     ]
 
-"""
-typedef struct _XRROutputInfo {
-    Time	    timestamp;
-    RRCrtc	    crtc;
-    char	    *name;
-    int		    nameLen;
-    unsigned long   mm_width;
-    unsigned long   mm_height;
-    Connection	    connection;
-    SubpixelOrder   subpixel_order;
-    int		    ncrtc;
-    RRCrtc	    *crtcs;
-    int		    nclone;
-    RROutput	    *clones;
-    int		    nmode;
-    int		    npreferred;
-    RRMode	    *modes;
-} XRROutputInfo;
-"""
-
 
 class XRROutputInfo(ctypes.Structure):
+
+    """
+    typedef struct _XRROutputInfo {
+        Time	    timestamp;
+        RRCrtc	    crtc;
+        char	    *name;
+        int		    nameLen;
+        unsigned long   mm_width;
+        unsigned long   mm_height;
+        Connection	    connection;
+        SubpixelOrder   subpixel_order;
+        int		    ncrtc;
+        RRCrtc	    *crtcs;
+        int		    nclone;
+        RROutput	    *clones;
+        int		    nmode;
+        int		    npreferred;
+        RRMode	    *modes;
+    } XRROutputInfo;
+    """
     _fields_ = [
         ('timestamp', Time),
         ('crtc', RRCrtc),