Sfoglia il codice sorgente

[Development] Fetch root window pointer directly from pScreen if possible.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4090 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.0.90
Adam Tkac 14 anni fa
parent
commit
02fd9a6cda
2 ha cambiato i file con 12 aggiunte e 2 eliminazioni
  1. 8
    2
      unix/xserver/hw/vnc/XserverDesktop.cc
  2. 4
    0
      unix/xserver/hw/vnc/xvnc.cc

+ 8
- 2
unix/xserver/hw/vnc/XserverDesktop.cc Vedi File

@@ -765,8 +765,14 @@ void XserverDesktop::grabRegion(const rfb::Region& region)
region.get_rects(&rects);
for (i = rects.begin(); i != rects.end(); i++) {
for (int y = i->tl.y; y < i->br.y; y++) {
(*pScreen->GetImage) ((DrawablePtr)WindowTable[pScreen->myNum],
i->tl.x, y, i->width(), 1,
DrawablePtr pDrawable;
#if XORG < 19
pDrawable = (DrawablePtr) WindowTable[pScreen->myNum];
#else
pDrawable = (DrawablePtr) pScreen->root;
#endif

(*pScreen->GetImage) (pDrawable, i->tl.x, y, i->width(), 1,
ZPixmap, (unsigned long)~0L,
((char*)data
+ y * bytesPerRow + i->tl.x * bytesPerPixel));

+ 4
- 0
unix/xserver/hw/vnc/xvnc.cc Vedi File

@@ -878,7 +878,11 @@ static Bool vncRandRGetInfo (ScreenPtr pScreen, Rotation *rotations)
static void
xf86SetRootClip (ScreenPtr pScreen, Bool enable)
{
#if XORG < 19
WindowPtr pWin = WindowTable[pScreen->myNum];
#else
WindowPtr pWin = pScreen->root;
#endif
WindowPtr pChild;
Bool WasViewable = (Bool)(pWin->viewable);
Bool anyMarked = FALSE;

Loading…
Annulla
Salva