Re: user: test: LoadImage() alpha handling
Frank Richter <frank.richter(a)gmail.com> writes:
+static void test_LoadImage(void) +{ + HINSTANCE hInst = GetModuleHandle (NULL); + HBITMAP bmp = LoadImage (hInst, MAKEINTRESOURCE(1), IMAGE_BITMAP, + 0, 0, LR_CREATEDIBSECTION|LR_SHARED); + DIBSECTION ds; + + GetObject (bmp, sizeof(ds), &ds); + + todo_wine ok (((BYTE*)ds.dsBm.bmBits)[3] == 0x7f, "alpha value %x != 0x7f\n", + ((BYTE*)ds.dsBm.bmBits)[3]);
Is this really supposed to fail on Wine? It works fine here... -- Alexandre Julliard julliard(a)winehq.org
On 08.07.2005 16:18, Alexandre Julliard wrote:
Is this really supposed to fail on Wine? It works fine here...
Well, fails for me. Hm, I'm currently using the Cygwin/X server which reports a display depth of 24bpp... perhaps the test is sensible to the display depth? Maybe yours is 32bpp, by chance? -f.r.
On 10.07.2005 16:03, Frank Richter wrote:
Hm, I'm currently using the Cygwin/X server which reports a display depth of 24bpp... perhaps the test is sensible to the display depth? Maybe yours is 32bpp, by chance?
I just checked on a Linux X server (also running at 24bpp) and indeed, there it works... -f.r
participants (2)
-
Alexandre Julliard -
Frank Richter