Advertisement

800x600x8 won't work!!??

Started by January 14, 2000 07:52 AM
5 comments, last by serafin 25 years, 1 month ago
Hi there: I ve got a fill screen rountine which uses pixel plotting technique. it works under all the other resolutions but only woulnd''t work under 800x600x8bpp (by the way I''m using DirectX)and I''ve got another 16bpp rountine which works fine! the routine actually excutes but instead of staying as it is, the window box pops back..?? can anyone help? serafin
Does it not work for just the 800x600 resolution when you''re in 8bpp? Or does it work for other resolutions in 8pp mode. If it doesn''t work in any of the 8bpp modes, then you may need to set palettes for your surfaces since 8bpp indexes into an RGB pallete to get the color info instead of the RGB stuff coming from the surface itself.
Advertisement
Hi Ro:

Thanks for answering. it only happens in that particular resolution..!! it''s fine for 640x480 or 1024x768. I can carry on learning Dx now since I can get other resolutions right, just it bothers me! a lot!

My guess is that I did something which draws outside of the boundary, cause I can see that the screen draws itself, but just wouldn''t stay.
Does it happen only with initializing the window? Or are you loading BMPs too? The reason I ask is that I used to get that problem when I tried to load certain BMPs. In the end, it wasn''t the window that was the problem, but what I was trying to load ONTO the window.
Just a thought, though.
this happens when I finished filling the screen with black dots using my plotpixel routine. since the routine takes the screen width and height as boudaries for FOR loops, I can''t see anything wrong with it, or at least the routine works for other resolutions.. so I''m really confused why wouldn''t work for 800x600x8!!

Serafin
Are you making sure you are using the pitch in your routine? I would be surprized that it would only happen in this resolution, but it''s an idea.
Advertisement
yep! I''ve checked the pitch too.. I''ve used the pitch and the width from DDSD, no luck.. I guess I will give it another try this weekend..

but thanks you guys anyway..

This topic is closed to new replies.

Advertisement