xfreerdp-client: fixed build

This commit is contained in:
C-o-r-E 2013-05-13 15:23:50 -04:00
parent fe78d6d1bc
commit 85d8230d36
3 changed files with 4 additions and 26 deletions

View File

@ -1545,20 +1545,6 @@ DWORD xf_exit_code_from_disconnect_reason(DWORD reason)
* Client Interface
*/
double freerdp_client_get_scale(xfInfo* xfi)
{
return xfi->scale;
}
void freerdp_client_reset_scale(xfInfo* xfi)
{
xfi->scale = 1.0;
XResizeWindow(xfi->display, xfi->window->handle, xfi->orig_width * xfi->scale, xfi->orig_height * xfi->scale);
IFCALL(xfi->client->OnResizeWindow, xfi->instance, xfi->orig_width * xfi->scale, xfi->orig_height * xfi->scale);
xf_draw_screen_scaled(xfi);
}
int freerdp_client_global_init()
{
setlocale(LC_ALL, "");

View File

@ -230,8 +230,8 @@ BOOL xf_kbd_handle_special_keys(xfInfo* xfi, KeySym keysym)
xfi->scale = s;
XResizeWindow(xfi->display, xfi->window->handle, xfi->orig_width * s, xfi->orig_height * s);
IFCALL(xfi->client->OnResizeWindow, xfi->instance, xfi->orig_width * s, xfi->orig_height * s);
XResizeWindow(xfi->display, xfi->window->handle, xfi->originalWidth * s, xfi->originalHeight * s);
IFCALL(xfi->client->OnResizeWindow, xfi->instance, xfi->originalWidth * s, xfi->originalHeight * s);
//xf_draw_screen_scaled(xfi);
return TRUE;
}
@ -250,8 +250,8 @@ BOOL xf_kbd_handle_special_keys(xfInfo* xfi, KeySym keysym)
xfi->scale = s;
XResizeWindow(xfi->display, xfi->window->handle, xfi->orig_width * s, xfi->orig_height * s);
IFCALL(xfi->client->OnResizeWindow, xfi->instance, xfi->orig_width * s, xfi->orig_height * s);
XResizeWindow(xfi->display, xfi->window->handle, xfi->originalWidth * s, xfi->originalHeight * s);
IFCALL(xfi->client->OnResizeWindow, xfi->instance, xfi->originalWidth * s, xfi->originalHeight * s);
//xf_draw_screen_scaled(xfi);
return TRUE;
}

View File

@ -105,14 +105,6 @@ struct xf_info
HANDLE thread;
BOOL UseXThreads;
int XInputOpcode;
int orig_width;
int orig_height;
int cur_width;
int cur_height;
double scale;
HGDI_DC hdc;
BYTE* primary_buffer;