UINT32 buffer = (UINT32)screen->pixels;
buffer = 0xFF; // Error only seems to occur if you write to
the
surface
Errr… Shouldn’t that be:
Uint32 * buffer = (Uint32 *) screen->pixels;
buffer[0] = 0xFF;
(notice pointers and capitalization)
Also, check that the value returned by SetVideoMode is not NULL.–
Olivier A. Dagenais - Software Architect and Developer