winex11.drv: Fix compiler warnings with flag -Wcast-qual.
This commit is contained in:
parent
2a8972378f
commit
3069ad44cb
|
@ -4049,7 +4049,8 @@ INT CDECL X11DRV_SetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT start
|
||||||
{
|
{
|
||||||
unsigned int srcwidthb = ds.dsBm.bmWidthBytes;
|
unsigned int srcwidthb = ds.dsBm.bmWidthBytes;
|
||||||
int dstwidthb = X11DRV_DIB_GetDIBWidthBytes( width, descr.infoBpp );
|
int dstwidthb = X11DRV_DIB_GetDIBWidthBytes( width, descr.infoBpp );
|
||||||
LPBYTE dbits = physBitmap->base, sbits = (LPBYTE)bits + (startscan * srcwidthb);
|
LPBYTE dbits = physBitmap->base;
|
||||||
|
const BYTE *sbits = (const BYTE*)bits + (startscan * srcwidthb);
|
||||||
int widthb;
|
int widthb;
|
||||||
UINT y;
|
UINT y;
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,7 @@ static int updateField(DWORD origLen, DWORD origOffset, DWORD currentOffset,
|
||||||
return currentOffset;
|
return currentOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HIMCC updateCompStr(HIMCC old, LPWSTR compstr, DWORD len)
|
static HIMCC updateCompStr(HIMCC old, LPCWSTR compstr, DWORD len)
|
||||||
{
|
{
|
||||||
/* we need to make sure the CompStr, CompClaus and CompAttr fields are all
|
/* we need to make sure the CompStr, CompClaus and CompAttr fields are all
|
||||||
* set and correct */
|
* set and correct */
|
||||||
|
@ -923,7 +923,7 @@ BOOL WINAPI ImeSetCompositionString(HIMC hIMC, DWORD dwIndex, LPCVOID lpComp,
|
||||||
|
|
||||||
if (dwCompLen && lpComp)
|
if (dwCompLen && lpComp)
|
||||||
{
|
{
|
||||||
newCompStr = updateCompStr(lpIMC->hCompStr, (LPWSTR)lpComp, dwCompLen / sizeof(WCHAR));
|
newCompStr = updateCompStr(lpIMC->hCompStr, (LPCWSTR)lpComp, dwCompLen / sizeof(WCHAR));
|
||||||
ImmDestroyIMCC(lpIMC->hCompStr);
|
ImmDestroyIMCC(lpIMC->hCompStr);
|
||||||
lpIMC->hCompStr = newCompStr;
|
lpIMC->hCompStr = newCompStr;
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@ static BOOL write_registry_settings(const DEVMODEW *dm)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
#define set_value(name, data) \
|
#define set_value(name, data) \
|
||||||
if (RegSetValueExA(hkey, name, 0, REG_DWORD, (LPBYTE)(data), sizeof(DWORD))) \
|
if (RegSetValueExA(hkey, name, 0, REG_DWORD, (const BYTE*)(data), sizeof(DWORD))) \
|
||||||
ret = FALSE
|
ret = FALSE
|
||||||
|
|
||||||
set_value("DefaultSettings.BitsPerPel", &dm->dmBitsPerPel);
|
set_value("DefaultSettings.BitsPerPel", &dm->dmBitsPerPel);
|
||||||
|
|
Loading…
Reference in New Issue