143{
150
153
154
157
160
161 trace(
"Screen bpp: %lu.\n", screenbpp);
164
168 ok(iconinfo2.
fIcon == 0,
"\n");
173
176
178
179
180
181
182
183
184
185
186
187
188
189 for(creationbpp = 16; creationbpp <=32; creationbpp += 8)
190 {
193 {
194 skip(
"Unable to change bpp to %lu.\n", creationbpp);
195 continue;
196 }
197 trace(
"starting with creationbpp = %lu\n", creationbpp);
201 0,
202 0,
204 ok(hcursor != 0,
"should not fail\n");
205
206
208 {
209 trace(
"testing resetting to %lu\n",
bpp);
212 {
213 skip(
"Unable to change bpp to %lu.\n",
bpp);
214 continue;
215 }
217 ok(iconinfo2.
fIcon == 1,
"\n");
222
231
238 ok(
bitmap.bmBitsPixel == (creationbpp == 32 ? 32 :
bpp),
"creationbpp: %lu, bpp: %lu:\n", creationbpp,
bpp);
240
241
244 }
246 }
247
250 trace(
"Unable to go back to previous display settings. Sorry.\n");
251
253 ok(hcursor != 0,
"should not fail\n");
255 ok(iconinfo2.
fIcon == 0,
"\n");
260
269
270
273
275}
void Test_GetIconInfo(BOOL fIcon, DWORD screen_bpp)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR lpszDeviceName, LPDEVMODEW lpDevMode, HWND hwnd, DWORD dwflags, LPVOID lParam)
BOOL WINAPI EnumDisplaySettingsW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode)
DWORD WINAPI GetLastError(void)
BOOL WINAPI DestroyCursor(_In_ HCURSOR)
BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO)
#define DISP_CHANGE_SUCCESSFUL
#define ENUM_CURRENT_SETTINGS
HCURSOR WINAPI CreateCursor(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ int, _In_ int, _In_ CONST VOID *, _In_ CONST VOID *)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI DestroyIcon(_In_ HICON)