Fix formatting issues introduced through previous commit (cf630f).

This commit is contained in:
Michael Jumper 2013-02-09 16:46:29 -08:00
parent 50ed651c1f
commit 7fbd425610
2 changed files with 27 additions and 27 deletions

View File

@ -254,39 +254,39 @@ char* guac_vnc_get_password(rfbClient* client) {
void guac_vnc_set_pixel_format(rfbClient* client, int color_depth) { void guac_vnc_set_pixel_format(rfbClient* client, int color_depth) {
switch(color_depth) { switch(color_depth) {
case 8: case 8:
client->format.depth = 8; client->format.depth = 8;
client->format.bitsPerPixel = 8; client->format.bitsPerPixel = 8;
client->format.blueShift = 6; client->format.blueShift = 6;
client->format.redShift = 0; client->format.redShift = 0;
client->format.greenShift = 3; client->format.greenShift = 3;
client->format.blueMax = 3; client->format.blueMax = 3;
client->format.redMax = 7; client->format.redMax = 7;
client->format.greenMax = 7; client->format.greenMax = 7;
break; break;
case 16: case 16:
client->format.depth = 16; client->format.depth = 16;
client->format.bitsPerPixel = 16; client->format.bitsPerPixel = 16;
client->format.blueShift = 0; client->format.blueShift = 0;
client->format.redShift = 11; client->format.redShift = 11;
client->format.greenShift = 5; client->format.greenShift = 5;
client->format.blueMax = 0x1f; client->format.blueMax = 0x1f;
client->format.redMax = 0x1f; client->format.redMax = 0x1f;
client->format.greenMax = 0x3f; client->format.greenMax = 0x3f;
break; break;
case 24: case 24:
case 32: case 32:
default: default:
client->format.depth = 24; client->format.depth = 24;
client->format.bitsPerPixel = 32; client->format.bitsPerPixel = 32;
client->format.blueShift = 0; client->format.blueShift = 0;
client->format.redShift = 16; client->format.redShift = 16;
client->format.greenShift = 8; client->format.greenShift = 8;
client->format.blueMax = 0xff; client->format.blueMax = 0xff;
client->format.redMax = 0xff; client->format.redMax = 0xff;
client->format.greenMax = 0xff; client->format.greenMax = 0xff;
} }
} }
rfbBool guac_vnc_malloc_framebuffer(rfbClient* rfb_client) { rfbBool guac_vnc_malloc_framebuffer(rfbClient* rfb_client) {