Help me with 16bit pixel plotting

Started by
-1 comments, last by BASSOFeeSH 24 years, 1 month ago
ok, here is the contents of my pixel drawing function. What I am trying to do is make the pixel follow my mouse around. Well, it will go right and left, but not up and down. Before you ask about the y value, it is correct. I also have a small bitmap following my cursor around. note: buffSecondaryVideoMemory and lpitch are set earlier. I though lpitch might be wrong, but the same thing happens if I put ddsd.lPitch. { DDSURFACEDESC2 ddsd; memset(&ddsd, 0, sizeof(ddsd)); ddsd.dwSize = sizeof(ddsd); if(!lock()) { MessageBox(main_window_handle, "Error locking in drawPixel", "", MB_OK); return false; } buffSecondaryVideoMemory[x + (y *(lpitch >> 1))] = color; if(!(unlock())) { MessageBox(main_window_handle, "Error unlocking in drawPixel", "", MB_OK); return false; } return true; } "Why am I the only one on the away team with a red shirt!?" BASSOFeeSH ><>
-- What would Sweetness do?

This topic is closed to new replies.

Advertisement