xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #1427: debian-video-refresh.diff

File debian-video-refresh.diff, 2.7 KB (added by Norman Rasmussen, 5 years ago)
  • patches/0002-Constant-DPI.patch

     
    2323 /* identifying atom needed by magnifiers */
    2424 #include <X11/Xatom.h>
    2525 #include "property.h"
    26 @@ -115,11 +121,15 @@
     26@@ -118,11 +124,15 @@
    2727 };
    2828 
    2929 typedef enum {
     
    4040     { -1,                  NULL,           OPTV_NONE,  {0}, FALSE }
    4141 };
    4242 
    43 @@ -359,6 +369,7 @@
     43@@ -362,6 +372,7 @@
    4444     xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, dPtr->Options);
    4545 
    4646     xf86GetOptValBool(dPtr->Options, OPTION_SW_CURSOR,&dPtr->swCursor);
     
    4848 
    4949     if (device->videoRam != 0) {
    5050        pScrn->videoRam = device->videoRam;
    51 @@ -639,10 +650,45 @@
     51@@ -661,11 +672,45 @@
    5252     return TRUE;
    5353 }
    5454 
     
    7777 Bool
    7878 DUMMYSwitchMode(SWITCH_MODE_ARGS_DECL)
    7979 {
    80 +    SCRN_INFO_PTR(arg);
     80     SCRN_INFO_PTR(arg);
    8181+#ifdef RANDR
    8282+    DUMMYPtr dPtr = DUMMYPTR(pScrn);
    8383+    if (dPtr->constantDPI) {
     
    9191+        RRTellChanged(pScrn->pScreen);
    9292+    }
    9393+#endif
    94      return TRUE;
     94     return dummyModeInit(pScrn, mode);
    9595 }
    9696 
  • patches/0003-fix-pointer-limits.patch

     
    1010 /* Mandatory functions */
    1111 static const OptionInfoRec *   DUMMYAvailableOptions(int chipid, int busid);
    1212 static void     DUMMYIdentify(int flags);
    13 @@ -713,6 +716,26 @@
     13@@ -711,6 +714,26 @@
    1414         RRTellChanged(pScrn->pScreen);
    1515     }
    1616 #endif
     
    3434+            pSprite->physLimits.y2 = mode->VDisplay;
    3535+        }
    3636+    }
    37      return TRUE;
     37     return dummyModeInit(pScrn, mode);
    3838 }
    3939 
  • patches/0005-support-for-30-bit-depth-in-dummy-driver.patch

     
    1111     Bool prop;
    1212--- a/src/dummy_driver.c        2016-12-17 23:33:47.446657886 +0100
    1313+++ b/src/dummy_driver.c        2016-12-17 23:33:56.696739175 +0100
    14 @@ -317,6 +317,7 @@
     14@@ -323,6 +323,7 @@
    1515        case 15:
    1616        case 16:
    1717        case 24:
     
    1919            break;
    2020        default:
    2121            xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
    22 @@ -331,8 +332,8 @@
     22@@ -337,8 +338,8 @@
    2323        pScrn->rgbBits = 8;
    2424 
    2525     /* Get the depth24 pixmap format */
     
    3030 
    3131     /*
    3232      * This must happen after pScrn->display has been set because
    33 @@ -623,7 +624,7 @@
     33@@ -648,7 +649,7 @@
    3434     if(!miCreateDefColormap(pScreen))
    3535        return FALSE;
    3636