Posts: 500
Threads: 7
Joined: Jun 2005
Okay, so I have some code to create a tiny 32x32 head. It works in QB (aside from the FB screen and the colour format used) and FB (windowed). The problem is it shifts to the left when in full screen. I'm assuming the reason is because "GDI...Supports windowed mode only". Is there any way to correct this other than using OpenGL or DirectX? Code below:
Code:
cls
screen 17,32,,1
for y = 0 TO 11
for x = 0 to 14
read n 'reads the colours
pset (x,y),n
next x
next y
sleep
end
'data statements for a 15x12 image are here; using &hRRGGBB format
If anybody can help, thanks!
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Posts: 268
Threads: 9
Joined: Dec 2004
"shifts to the left"? What do you mean?
Gfxlib uses its own internal GDI driver only if the DirectX one cannot be initialized (i.e. if DirectX is not installed), or if you explicitely set the environmental variable FBGFX to "gdi".
Anyway, GDI doesn't support fullscreen: I didn't bother implementing it as GDI is just meant to be a fallback for when DX cannot be used. It is slower than DX, and should not be used unless necessary...
Posts: 500
Threads: 7
Joined: Jun 2005
For example, my graphic is at (0,0) on the screen in windowed mode. However, the screen extends past the edge of the viewport in full screen. Here are 2 screens (put together):
I suppose it could be my monitor too.
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Posts: 1,439
Threads: 15
Joined: Apr 2003
I would be willing to bet it's your monitor.
Try adjusting the horizontal position and size controls.
Posts: 500
Threads: 7
Joined: Jun 2005
I think it is my monitor. I had adjusted the size, and it worked the first time. When I re-ran my program, it happened again. Adjusting the position fixed it.
Thanks to everyone who wanted to and/or did help!
Thank you, DrV!
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Posts: 1,439
Threads: 15
Joined: Apr 2003
Quote:Thank you, DrV!
Any time! :)
Posts: 1,845
Threads: 44
Joined: Aug 2002
Quote:rpgfan3233 Wrote:Thank you, DrV!
Any time!
lol. I could read those small letters just like normal text... without zooming in
(I know... i am weird) Why did you post it small?
Posts: 500
Threads: 7
Joined: Jun 2005
Quote:lol. I could read those small letters just like normal text... without zooming in (I know... i am weird) Why did you post it small?
How in the world could you possibly. . . Magnifying glass? Slightly malfunctioning microscope?
I posted mine that small to see how closely people pay attention.
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Posts: 193
Threads: 20
Joined: Jun 2005
Quote:DrV Wrote:rpgfan3233 Wrote:Thank you, DrV!
Any time!
lol. I could read those small letters just like normal text... without zooming in (I know... i am weird) Why did you post it small?
But they are only small dots? :???:
You must have very good eyes.....
Posts: 1,439
Threads: 15
Joined: Apr 2003
Or a very high-resolution monitor and a farked-up browser.
That text is 1 pixel tall on the default configurations of IE and Firefox - there's no way you could read that.