[Bug 6482] Apollonian Spheres Fractal crashes

Wine Bugs wine-bugs at winehq.org
Tue Oct 24 18:11:48 CDT 2006


http://bugs.winehq.org/show_bug.cgi?id=6482





------- Additional Comments From T.Bonner at freesurf.ch  2006-24-10 18:11 -------
Just did some investigation in my software, and it seems to be the function
ChoosePixelFormat (followed by SetPixelFormat). This part is some kind of dead
code, not needed and still remaining from earlier versions. I've removed it and
now it's working. The function was to initiate some opengl hardware (and there
came the problem from without an installed graphics driver from nvidia).
Following is the obsolete code part: 

  ZeroMemory (&pfd, sizeof (pfd));
  pfd.nSize = sizeof (pfd);
  pfd.nVersion = 1;
  pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_DOUBLEBUFFER;
  pfd.iPixelType = PFD_TYPE_RGBA;
  pfd.cColorBits = 24;
  pfd.cDepthBits = 16;
  pfd.iLayerType = PFD_MAIN_PLANE;
  printf ("calling ChoosePixelFormat...\n");
  iFormat = ChoosePixelFormat (hDC, &pfd); /* <--- wine bug here */
  printf ("calling SetPixelFormat...\n");
  SetPixelFormat (hDC, iFormat, &pfd);

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list