mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-02 22:36:16 +08:00
Fix intialization, remove some unused variables.
This commit is contained in:
parent
3a1168cbda
commit
a3a89a43f7
@ -357,18 +357,10 @@ static BOOL floatbar_paint(wfFloatBar* const floatbar, const HDC hdc)
|
|||||||
int bottom = BACKGROUND_H - 1;
|
int bottom = BACKGROUND_H - 1;
|
||||||
int right = BACKGROUND_W - 1;
|
int right = BACKGROUND_W - 1;
|
||||||
const int angleOffset = BACKGROUND_H - 1;
|
const int angleOffset = BACKGROUND_H - 1;
|
||||||
TRIVERTEX triVertext[2] = { left,
|
TRIVERTEX triVertext[2] = { { left, top, GetRValue(rgbTop) << 8, GetGValue(rgbTop) << 8,
|
||||||
top,
|
GetBValue(rgbTop) << 8, 0x0000 },
|
||||||
GetRValue(rgbTop) << 8,
|
{ right, bottom, GetRValue(rgbBottom) << 8,
|
||||||
GetGValue(rgbTop) << 8,
|
GetGValue(rgbBottom) << 8, GetBValue(rgbBottom) << 8, 0x0000 } };
|
||||||
GetBValue(rgbTop) << 8,
|
|
||||||
0x0000,
|
|
||||||
right,
|
|
||||||
bottom,
|
|
||||||
GetRValue(rgbBottom) << 8,
|
|
||||||
GetGValue(rgbBottom) << 8,
|
|
||||||
GetBValue(rgbBottom) << 8,
|
|
||||||
0x0000 };
|
|
||||||
|
|
||||||
if (!floatbar)
|
if (!floatbar)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include <freerdp/utils/stopwatch.h>
|
#include <freerdp/utils/stopwatch.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
LARGE_INTEGER stopwatch_freq = { 0, 0 };
|
LARGE_INTEGER stopwatch_freq = { 0 };
|
||||||
#else
|
#else
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -195,7 +195,6 @@ void wf_mirror_driver_print_display_change_status(LONG status)
|
|||||||
|
|
||||||
BOOL wf_mirror_driver_update(wfInfo* wfi, int mode)
|
BOOL wf_mirror_driver_update(wfInfo* wfi, int mode)
|
||||||
{
|
{
|
||||||
HDC dc;
|
|
||||||
BOOL status;
|
BOOL status;
|
||||||
DWORD* extHdr;
|
DWORD* extHdr;
|
||||||
WORD drvExtraSaved;
|
WORD drvExtraSaved;
|
||||||
|
@ -1299,7 +1299,6 @@ int UnixChangeFileMode(const char* filename, int flags)
|
|||||||
#else
|
#else
|
||||||
int rc;
|
int rc;
|
||||||
WCHAR* wfl = NULL;
|
WCHAR* wfl = NULL;
|
||||||
int fl = 0;
|
|
||||||
|
|
||||||
if (ConvertToUnicode(CP_UTF8, 0, filename, -1, &wfl, 0) <= 0)
|
if (ConvertToUnicode(CP_UTF8, 0, filename, -1, &wfl, 0) <= 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -117,9 +117,9 @@ VOID USleep(DWORD dwMicroseconds)
|
|||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
usleep(dwMicroseconds);
|
usleep(dwMicroseconds);
|
||||||
#else
|
#else
|
||||||
static LARGE_INTEGER freq = { 0, 0 };
|
static LARGE_INTEGER freq = { 0 };
|
||||||
LARGE_INTEGER t1 = { 0, 0 };
|
LARGE_INTEGER t1 = { 0 };
|
||||||
LARGE_INTEGER t2 = { 0, 0 };
|
LARGE_INTEGER t2 = { 0 };
|
||||||
|
|
||||||
QueryPerformanceCounter(&t1);
|
QueryPerformanceCounter(&t1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user