Article ID: 978545 - Last Review: May 27, 2010 - Revision: 2.0 The SetPixel function fails in specific x-coordinates if Windows Aero is not running on a computer that is running Windows Vista
On This PageSYMPTOMSConsider the following scenario. You use an application that calls the SetPixel function on a computer that is running Windows Vista. This function sets a pixel at specified coordinates to a specified color.
In this scenario, the SetPixel function fails in specific ranges of x-coordinates. Therefore, the application experiences display issues. When this issue occurs, the first 255 pixels (0-255) on the x-axis display correctly. However, the next 255 pixels (256-511) on the x-axis do not display. The following 255 pixels (768-1023) display correctly. This pattern repeats across x-axis of the screen. For example, you use an application that calls the SetPixel function to draw a red horizontal line. The y-coordinate of the horizontal line is 300, and the range of the x-coordinate is from 0 to 768. In this example, the horizontal line is missing in the range of x-coordinates that is between 256 and 511. Therefore, the horizontal line is divided into two parts and is not displayed correctly. This issue occurs under one of the following conditions:
Notes
RESOLUTIONHotfix informationA supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support
(http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.PrerequisitesTo apply this hotfix, you must be running Windows Vista Service Pack 2 (SP2) on the computer. Additionally, the update that is described in article 971512 in the Microsoft Knowledge Base must be installed on the computer. For more information about how to obtain a Windows Vista service pack, click the following article number to view the article in the Microsoft Knowledge Base:935791
(http://support.microsoft.com/kb/935791/
)
How to obtain the latest Windows Vista service pack
For more information about article 971512 , click the following article number to view the article in the Microsoft Knowledge Base:
971512
(http://support.microsoft.com/kb/971512/
)
Description of the Windows Graphics, Imaging, and XPS Library
Restart requirementYou have to restart the computer after you apply this hotfix.Hotfix replacement informationThis hotfix does not replace a previously released hotfix.File informationThe global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.Windows Vista file information notes
For all supported x86-based versions of Windows VistaCollapse this table
For all supported x64-based versions of Windows VistaCollapse this table
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONFor more information about Windows Aero, visit the following Microsoft Web site: Explore the features in Windows Aero
(http://www.microsoft.com/windows/windows-vista/features/aero.aspx)
For more information about how to troubleshoot problems with Windows Aero, visit the following Microsoft Web site: How to troubleshoot problems with Windows Aero.
(http://windows.microsoft.com/en-US/windows-vista/Troubleshoot-problems-with-Windows-Aero)
For more information about the SetPixel function, visit the following Microsoft Developer Network (MSDN) Web site: General information about the SetPixel function
(http://msdn.microsoft.com/en-us/library/dd145078(VS.85).aspx)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates
Additional file informationAdditional file information for Windows VistaAdditional files for all supported x86-based versions of Windows VistaCollapse this table
Additional files for all supported x64-based versions of Windows VistaCollapse this table
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
