Odd behavior with starting Y position in resolution 800x600

Previous topic - Next topic

sleepingfish

Hi there,
I'm getting some odd behavior while learning GLBasic.
The position of the Y = 0 is a bit higher in resolution 800x600 on my computer then the other resolutions. Do this happen to anybody else? All the other resolutions seem fine. Just type a hello world program with its y position set at 0 if I confuse you. I'm programming on a windows xp os.

Code (glbasic) Select

PRINT "hello", 0, 0;
SHOWSCREEN
MOUSEWAIT



Ian Price

Are you making the app fullscreen? If so the whole thing may be being scaled to fill the screen and thus appear differently in that resolution.

Try it in Windowed mode and take some screenshots to show us. I've not noticed this behaviour before.
I came. I saw. I played.

sleepingfish


Here so pics, I what to check if this happens on another computer. All pics are in Windowed mode.

First pic is in 800x600
Second pic is in 800x480
Third pic is in 640x480


[attachment deleted by admin]

Ian Price

I can't actually see the "Hello" text in your first screenshot, can you try again as we can't compare without that.

I have tried your code (together with SETSCREEN 800,600,0 then SETSCREEN 800,480,0) at the start and see no visible difference between where the text is displayed.
I came. I saw. I played.

sleepingfish

I'm going to try this code on another computer and see if it could just be my display or something. You can't see the hello in the first pic because I put the print hello statement Y value at 0 and GLBasic set the Y starting coordinates higher then the display screen making not visiable. If giving a Y value of 50 then it would show.

Ian Price

What is the max res of your monitor? I suspect that the resolution in the Y aspect is 600 or less, and could be the reason you're seeing this behaviour - the titlebar is hiding the text. Can you increase the screen resolution?
I came. I saw. I played.

kanonet

Ian is right, if you create a window with your monitor size, you lose the first rows of pixels. Set your window to a smaller y size, or use fullscreen is the only way to solve this, that I know.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

sleepingfish

Resolution 800x600 worked after I changed windows xp resolution to 1024x768. But now 1024x768 don't work in the hello program. I might just have to work with a higher resolution then the program I'm programming. Full screen did'nt work as long as both my os and the program resolution is the same. Thanks for all the help guys. Now I have a ideal what going on.

kanonet

Its ok that you cant have a window in the same size than your monitor, i get the same problem and think its normal.
But you should have no problems in fullscreen, thats just strange and it works on my system.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Ian Price

QuoteI might just have to work with a higher resolution then the program I'm programming?
Yep. For Windowed apps, the titlebar is always visible, so you need to ensure that the screen res is larger than your required game res+titlebar height.
I came. I saw. I played.

sleepingfish

GLBasic is a little different then the other programming language I was using and going to take a little time to adjust.

Edit: When I think about the program in fullscreen. I can still see a titlebar. Is that how full screen is for GLBasic or maybe my display not giving me true fullscreen.

Hello world in fullscreen in 800x600 and windows xp setting at 800x600. Oh well, its not that big of a deal.

[attachment deleted by admin]

spicypixel

Quote from: sleepingfish on 2012-Oct-07
GLBasic is a little different then the other programming language I was using and going to take a little time to adjust.

Edit: When I think about the program in fullscreen. I can still see a titlebar. Is that how full screen is for GLBasic or maybe my display not giving me true fullscreen.

Hello world in fullscreen in 800x600 and windows xp setting at 800x600. Oh well, its not that big of a deal.

That's not full-screen mode use SETSCREEN 800, 600, 1 and all will be fine.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

sleepingfish

Quote from: spicypixel on 2012-Oct-07
Quote from: sleepingfish on 2012-Oct-07
GLBasic is a little different then the other programming language I was using and going to take a little time to adjust.

Edit: When I think about the program in fullscreen. I can still see a titlebar. Is that how full screen is for GLBasic or maybe my display not giving me true fullscreen.

Hello world in fullscreen in 800x600 and windows xp setting at 800x600. Oh well, its not that big of a deal.

That's not full-screen mode use SETSCREEN 800, 600, 1 and all will be fine.

That worked, now I can programming in fullscreen and no problems with the first 50 rows of pixels being cover up.
I was thinking I just needed to hit the fullscreen tab in project options for fullscreen to work. Learning something new everyday, thanks.

okee

Also, I know this is basic but if you run your program in full screen i.e.
SETSCREEN Gfx,Gfy,1
and you're missing a few pixels, press the "Auto Image Adjust"
button on your monitor an it'll adjust to fit correctly.
Android: Samsung Galaxy S2 -  ZTE Blade (Orange San Francisco) - Ainol Novo 7 Aurora 2
IOS: 2 x Ipod Touch (1G)