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 right = BACKGROUND_W - 1;
|
||||
const int angleOffset = BACKGROUND_H - 1;
|
||||
TRIVERTEX triVertext[2] = { left,
|
||||
top,
|
||||
GetRValue(rgbTop) << 8,
|
||||
GetGValue(rgbTop) << 8,
|
||||
GetBValue(rgbTop) << 8,
|
||||
0x0000,
|
||||
right,
|
||||
bottom,
|
||||
GetRValue(rgbBottom) << 8,
|
||||
GetGValue(rgbBottom) << 8,
|
||||
GetBValue(rgbBottom) << 8,
|
||||
0x0000 };
|
||||
TRIVERTEX triVertext[2] = { { left, top, GetRValue(rgbTop) << 8, GetGValue(rgbTop) << 8,
|
||||
GetBValue(rgbTop) << 8, 0x0000 },
|
||||
{ right, bottom, GetRValue(rgbBottom) << 8,
|
||||
GetGValue(rgbBottom) << 8, GetBValue(rgbBottom) << 8, 0x0000 } };
|
||||
|
||||
if (!floatbar)
|
||||
return FALSE;
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <freerdp/utils/stopwatch.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
LARGE_INTEGER stopwatch_freq = { 0, 0 };
|
||||
LARGE_INTEGER stopwatch_freq = { 0 };
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
@ -195,7 +195,6 @@ void wf_mirror_driver_print_display_change_status(LONG status)
|
||||
|
||||
BOOL wf_mirror_driver_update(wfInfo* wfi, int mode)
|
||||
{
|
||||
HDC dc;
|
||||
BOOL status;
|
||||
DWORD* extHdr;
|
||||
WORD drvExtraSaved;
|
||||
|
@ -1299,7 +1299,6 @@ int UnixChangeFileMode(const char* filename, int flags)
|
||||
#else
|
||||
int rc;
|
||||
WCHAR* wfl = NULL;
|
||||
int fl = 0;
|
||||
|
||||
if (ConvertToUnicode(CP_UTF8, 0, filename, -1, &wfl, 0) <= 0)
|
||||
return -1;
|
||||
|
@ -117,9 +117,9 @@ VOID USleep(DWORD dwMicroseconds)
|
||||
#ifndef _WIN32
|
||||
usleep(dwMicroseconds);
|
||||
#else
|
||||
static LARGE_INTEGER freq = { 0, 0 };
|
||||
LARGE_INTEGER t1 = { 0, 0 };
|
||||
LARGE_INTEGER t2 = { 0, 0 };
|
||||
static LARGE_INTEGER freq = { 0 };
|
||||
LARGE_INTEGER t1 = { 0 };
|
||||
LARGE_INTEGER t2 = { 0 };
|
||||
|
||||
QueryPerformanceCounter(&t1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user