Skip to content

Commit

Permalink
macro changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorg71 committed Dec 16, 2014
1 parent 0a670eb commit 6edf9e5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion module/rdpClientCon.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ rdpClientConProcessScreenSizeMsg(rdpPtr dev, rdpClientCon *clientCon,
{
clientCon->rdp_Bpp = 1;
clientCon->rdp_Bpp_mask = 0xff;
clientCon->rdp_format = PIXMAN_r3g3b2;
clientCon->rdp_format = XRDP_r3g3b2;
}
else if (bpp == 15)
{
Expand Down
17 changes: 14 additions & 3 deletions module/rdpDraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,20 @@ misc draw calls

/* true if drawable is window or pixmap is screen */
#define XRDP_DRAWABLE_IS_VISIBLE(_dev, _drw) \
(((_drw)->type == DRAWABLE_WINDOW && ((WindowPtr)(_drw))->viewable) || \
((_drw)->type == DRAWABLE_PIXMAP && \
((PixmapPtr)(_drw))->devPrivate.ptr == (_dev)->pfbMemory))
( \
( \
((_drw)->type == DRAWABLE_WINDOW) && \
(((WindowPtr)(_drw))->viewable) && \
( \
(_drw)->pScreen->GetScreenPixmap((_drw)->pScreen) == \
(_drw)->pScreen->GetWindowPixmap((WindowPtr)(_drw)) \
) \
) || \
( \
((_drw)->type == DRAWABLE_PIXMAP) && \
(((PixmapPtr)(_drw))->devPrivate.ptr == (_dev)->pfbMemory) \
) \
)

/******************************************************************************/
#define GC_OP_VARS rdpPtr dev; rdpGCPtr priv; GCFuncs *oldFuncs
Expand Down

0 comments on commit 6edf9e5

Please sign in to comment.