Original Post
I''ve never had much luck with API''s, and SDL is my new venture.. And I''ve hit some problem I don''t seem to think I can solve.
Basically, I have a program which works in either windowed or fullscreen mode, and displays a bitmap at the position of the cursor. I''ve disabled the cursor using SDL_ShowCursor(0), and am using:
SDL_HWSURFACE|SDL_DOUBLEBUFFER as my primary surface flags.
The problem.. Whilst the program is running, I get strange "phantom blits" which flick around on the screen in a seemingly random fashion whilst I move the mouse cursor. These "phantom blits" are also seemingly random chunks of the screen, both in size and position. I''ve completely ruled out any tearing due to buffer flipping, and anything due to the mouse cursor(whether visible or not). Additionally, this problem is apparent whether in fullscreen or windowed mode. I did, however, find a bodge to the problem, and that is to use SDL_Delay(10) after the SDL_Flip(screen) call, but I can''t live with myself to use that as a fix
Any help would be much appreciated.
Additionally.. My system configuration:
Windows 2000 Professional SP 4
DirectX 9.0b
SDL 1.2.6
P4 Non-HT @ 2.4Ghz
Creative nVidia GeForce3 Ti200 64MB via Detonator XP 40.72
512MB DDR333 RAM