Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
4.6.3, 4.7.3, 4.7.4
-
None
-
Windows CE 5.0, 6.0 and WIndows Embedded Compact 7
Description
(The code below has been a long time, but nobody did not mentioned about it. So, I worry about whether it is a false report. )
The code below is normal except for Windows CE.
- qt-everywhere-opensource-src-4.x.x\src\gui\text\qfontengine_win.cpp(line:1260)
SystemParametersInfo(SPI_SETFONTSMOOTHINGCONTRAST, 0, (void *) 1000, 0);
Sets the contrast value used in ClearType smoothing. The pvParam parameter is the contrast value.
ref. http://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx
However, Windows CE does not work.
To set the gamma correction value, call SystemParametersInfo with uiAction set to SPI_SETFONTSMOOTHINGCONTRAST and the pvParam parameter set to a pointer to an unsigned integer that contains the desired gamma correction value.
ref.
Windows CE 5.0: http://msdn.microsoft.com/en-us/library/ms901154.aspx
Windows CE 6.0: http://msdn.microsoft.com/en-US/library/ee489847(v=WinEmbedded.60).aspx
Windows Embedded Compact 7: http://msdn.microsoft.com/en-us/library/ee489863.aspx
Therefore, the above code should be changed as shown below.
unsigned int contrastNew = 1000; SystemParametersInfo(SPI_SETFONTSMOOTHINGCONTRAST, 0, &contrastNew, 0);
Thanks.