mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[clang-tidy] readability-isolate-declaration
This commit is contained in:
@@ -435,7 +435,8 @@ BOOL wlf_disp_uninit(wlfDispContext* wlfDisp, DispClientContext* disp)
|
||||
|
||||
int wlf_list_monitors(wlfContext* wlc)
|
||||
{
|
||||
uint32_t i, nmonitors = UwacDisplayGetNbOutputs(wlc->display);
|
||||
uint32_t i;
|
||||
uint32_t nmonitors = UwacDisplayGetNbOutputs(wlc->display);
|
||||
|
||||
for (i = 0; i < nmonitors; i++)
|
||||
{
|
||||
|
||||
@@ -61,7 +61,8 @@ static BOOL scale_signed_coordinates(rdpContext* context, int32_t* x, int32_t* y
|
||||
|
||||
BOOL wlf_handle_pointer_enter(freerdp* instance, const UwacPointerEnterLeaveEvent* ev)
|
||||
{
|
||||
uint32_t x, y;
|
||||
uint32_t x;
|
||||
uint32_t y;
|
||||
rdpClientContext* cctx;
|
||||
|
||||
if (!instance || !ev)
|
||||
@@ -81,7 +82,8 @@ BOOL wlf_handle_pointer_enter(freerdp* instance, const UwacPointerEnterLeaveEven
|
||||
|
||||
BOOL wlf_handle_pointer_motion(freerdp* instance, const UwacPointerMotionEvent* ev)
|
||||
{
|
||||
uint32_t x, y;
|
||||
uint32_t x;
|
||||
uint32_t y;
|
||||
rdpClientContext* cctx;
|
||||
|
||||
if (!instance || !ev)
|
||||
@@ -106,7 +108,8 @@ BOOL wlf_handle_pointer_buttons(freerdp* instance, const UwacPointerButtonEvent*
|
||||
rdpClientContext* cctx;
|
||||
UINT16 flags = 0;
|
||||
UINT16 xflags = 0;
|
||||
uint32_t x, y;
|
||||
uint32_t x;
|
||||
uint32_t y;
|
||||
|
||||
if (!instance || !ev)
|
||||
return FALSE;
|
||||
@@ -397,7 +400,8 @@ BOOL wlf_keyboard_modifiers(freerdp* instance, const UwacKeyboardModifiersEvent*
|
||||
|
||||
BOOL wlf_handle_touch_up(freerdp* instance, const UwacTouchUp* ev)
|
||||
{
|
||||
int32_t x, y;
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
|
||||
WINPR_ASSERT(instance);
|
||||
WINPR_ASSERT(ev);
|
||||
@@ -416,7 +420,8 @@ BOOL wlf_handle_touch_up(freerdp* instance, const UwacTouchUp* ev)
|
||||
|
||||
BOOL wlf_handle_touch_down(freerdp* instance, const UwacTouchDown* ev)
|
||||
{
|
||||
int32_t x, y;
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
|
||||
WINPR_ASSERT(instance);
|
||||
WINPR_ASSERT(ev);
|
||||
@@ -435,7 +440,8 @@ BOOL wlf_handle_touch_down(freerdp* instance, const UwacTouchDown* ev)
|
||||
|
||||
BOOL wlf_handle_touch_motion(freerdp* instance, const UwacTouchMotion* ev)
|
||||
{
|
||||
int32_t x, y;
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
|
||||
WINPR_ASSERT(instance);
|
||||
WINPR_ASSERT(ev);
|
||||
|
||||
@@ -71,7 +71,10 @@ static BOOL wlf_Pointer_Set(rdpContext* context, rdpPointer* pointer)
|
||||
wlfContext* wlf = (wlfContext*)context;
|
||||
wlfPointer* ptr = (wlfPointer*)pointer;
|
||||
void* data;
|
||||
UINT32 w, h, x, y;
|
||||
UINT32 w;
|
||||
UINT32 h;
|
||||
UINT32 x;
|
||||
UINT32 y;
|
||||
size_t size;
|
||||
UwacReturnCode rc;
|
||||
BOOL res = FALSE;
|
||||
|
||||
@@ -51,7 +51,10 @@ static BOOL wl_update_buffer(wlfContext* context_w, INT32 ix, INT32 iy, INT32 iw
|
||||
BOOL res = FALSE;
|
||||
rdpGdi* gdi;
|
||||
char* data;
|
||||
UINT32 x, y, w, h;
|
||||
UINT32 x;
|
||||
UINT32 y;
|
||||
UINT32 w;
|
||||
UINT32 h;
|
||||
UwacSize geometry;
|
||||
size_t stride;
|
||||
UwacReturnCode rc;
|
||||
@@ -119,8 +122,10 @@ static BOOL wl_end_paint(rdpContext* context)
|
||||
{
|
||||
rdpGdi* gdi;
|
||||
wlfContext* context_w;
|
||||
INT32 x, y;
|
||||
INT32 w, h;
|
||||
INT32 x;
|
||||
INT32 y;
|
||||
INT32 w;
|
||||
INT32 h;
|
||||
|
||||
if (!context || !context->gdi || !context->gdi->primary)
|
||||
return FALSE;
|
||||
@@ -224,7 +229,8 @@ static BOOL wl_post_connect(freerdp* instance)
|
||||
rdpSettings* settings;
|
||||
char* title = "FreeRDP";
|
||||
char* app_id = "wlfreerdp";
|
||||
UINT32 w, h;
|
||||
UINT32 w;
|
||||
UINT32 h;
|
||||
|
||||
if (!instance || !instance->context)
|
||||
return FALSE;
|
||||
@@ -770,7 +776,8 @@ BOOL wlf_scale_coordinates(rdpContext* context, UINT32* px, UINT32* py, BOOL fro
|
||||
wlfContext* wlf = (wlfContext*)context;
|
||||
rdpGdi* gdi;
|
||||
UwacSize geometry;
|
||||
double sx, sy;
|
||||
double sx;
|
||||
double sy;
|
||||
|
||||
if (!context || !px || !py || !context->gdi)
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user