~paulliu/ubuntu/precise/freerdp/fixext

« back to all changes in this revision

Viewing changes to libfreerdp/capabilities.c

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2010-10-25 14:29:02 UTC
  • mto: (9.1.1 sid) (1.1.7)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20101025142902-j8hmshnnxhu61l4m
Tags: upstream-0.8.1
ImportĀ upstreamĀ versionĀ 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
rdp_skip_capset_header(STREAM s, int size)
31
31
{
32
32
        uint8 * rv;
33
 
 
34
33
        rv = s->p;
35
34
        s->p += size;
36
35
        return rv;
54
53
void
55
54
rdp_out_general_capset(rdpRdp * rdp, STREAM s)
56
55
{
57
 
        uint8 * header;
58
56
        int flags;
 
57
        uint8 * header;
59
58
 
60
59
        header = rdp_skip_capset_header(s, 4);
61
60
        out_uint16_le(s, OS_MAJOR_TYPE_WINDOWS); // osMajorType, should we lie?
149
148
         */
150
149
        if (rdp->settings->server_depth != preferredBitsPerPixel)
151
150
        {
152
 
                ui_warning(rdp->inst, "Remote desktop does not support colour depth %d; falling back to %d\n",
 
151
                ui_warning(rdp->inst, "Remote desktop does not support color depth %d; falling back to %d\n",
153
152
                        rdp->settings->server_depth, preferredBitsPerPixel);
154
153
                rdp->settings->server_depth = preferredBitsPerPixel;
155
154
        }