freerdp1: fixes from ArvidNorr

This commit is contained in:
Jay Sorg 2012-05-07 11:21:47 -07:00
parent 3e422c04c6
commit 769e006dfe
2 changed files with 15 additions and 0 deletions

View File

@ -131,6 +131,10 @@ convert_bitmap(int in_bpp, int out_bpp, char* bmpdata,
}
return out;
}
if ((in_bpp == 15) && (out_bpp == 15))
{
return bmpdata;
}
if ((in_bpp == 16) && (out_bpp == 16))
{
return bmpdata;
@ -239,6 +243,10 @@ convert_color(int in_bpp, int out_bpp, int in_color, int* palette)
pixel = COLOR24BGR(red, green, blue);
return pixel;
}
if ((in_bpp == 15) && (out_bpp == 15))
{
return in_color;
}
if ((in_bpp == 16) && (out_bpp == 16))
{
return in_color;

View File

@ -152,6 +152,10 @@ lxrdp_event(struct mod* mod, int msg, long param1, long param2,
case 16: /* key up */
mod->inst->input->KeyboardEvent(mod->inst->input, param4, param3);
break;
case 17: /*Synchronize*/
LLOGLN(0, ("Synchronized event handled"));
mod->inst->input->SynchronizeEvent(mod->inst->input, 0);
break;
case 100: /* mouse move */
LLOGLN(10, ("mouse move %d %d", param1, param2));
x = param1;
@ -255,6 +259,9 @@ lxrdp_event(struct mod* mod, int msg, long param1, long param2,
break;
}
break;
default:
LLOGLN(0, ("Unhandled message type in eventhandler %d", msg));
break;
}
return 0;
}