Skip to content

Commit

Permalink
Merge branch 'master' of github.com:FreeRDP/FreeRDP into remotefx
Browse files Browse the repository at this point in the history
  • Loading branch information
awakecoding committed Jun 28, 2011
2 parents 1f201c0 + c64c24a commit c78f823
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions X11/xf_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,14 @@ l_ui_reset_clip(struct rdp_inst * inst)
static void
l_ui_resize_window(struct rdp_inst * inst)
{
xfInfo * xfi = GET_XFI(inst);

if (xfi->settings->software_gdi == 1)
{
gdi_free(inst);
gdi_init(inst, CLRCONV_ALPHA | CLRBUF_32BPP);
}

printf("ui_resize_window:\n");
}

Expand Down
1 change: 1 addition & 0 deletions libfreerdp-core/capabilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ void rdp_process_bitmap_capset(rdpRdp * rdp, STREAM s)
ui_warning(rdp->inst, "Remote desktop does not support color depth %d; falling back to %d\n",
rdp->settings->server_depth, preferredBitsPerPixel);
rdp->settings->server_depth = preferredBitsPerPixel;
ui_resize_window(rdp->inst);
}
if (rdp->settings->width != desktopWidth || rdp->settings->height != desktopHeight)
{
Expand Down
2 changes: 2 additions & 0 deletions libfreerdp-gdi/gdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,4 +1197,6 @@ void gdi_free(rdpInst* inst)
free(gdi->clrconv);
free(gdi);
}

SET_GDI(inst, NULL);
}

0 comments on commit c78f823

Please sign in to comment.