| 2015 | } |
| 2016 | |
| 2017 | BOOL CBackendFreeRDP::cb_desktop_resize(rdpContext* context) |
| 2018 | { |
| 2019 | qDebug(log) << Q_FUNC_INFO; |
| 2020 | ClientContext* pContext = (ClientContext*)context; |
| 2021 | CBackendFreeRDP* pThis = pContext->pThis; |
| 2022 | rdpSettings* settings; |
| 2023 | if (!context || !context->settings) |
| 2024 | return FALSE; |
| 2025 | settings = context->settings; |
| 2026 | int desktopWidth = freerdp_settings_get_uint32(settings, FreeRDP_DesktopWidth); |
| 2027 | int desktopHeight = freerdp_settings_get_uint32(settings, FreeRDP_DesktopHeight); |
| 2028 | |
| 2029 | if(!gdi_resize(context->gdi, desktopWidth, desktopHeight)) |
| 2030 | return FALSE; |
| 2031 | if(!pThis->CreateImage(context)) |
| 2032 | return FALSE; |
| 2033 | |
| 2034 | emit pThis->sigSetDesktopSize(desktopWidth, desktopHeight); |
| 2035 | pThis->UpdateBuffer(0, 0, desktopWidth, desktopHeight); |
| 2036 | return TRUE; |
| 2037 | } |
| 2038 | |
| 2039 | BOOL CBackendFreeRDP::cb_play_bell_sound(rdpContext *context, const PLAY_SOUND_UPDATE *play_sound) |
| 2040 | { |
nothing calls this directly
no test coverage detected