Original Post
When I lock a surface and try to copy directly to the surface, I get this compilation error :-
g_pBackBuffer->LockRect( &g_LockedRect, NULL, 0 );
for( int y = 0; y < Height; y++ )
{
for( int x = 0 ;x < Width; x++ )
{
(DWORD*)g_LockedRect.pBits[x] = 255;
}
g_LockedRect.pBits+=g_LockedRect.pitch;
}
g_pBackBuffer->UnlockRect();
-----------------------------------------
error C2036: ''void *'' : unknown size
-----------------------------------------
How do I properly do this?
Thanks.