Running in a window is cutting off the bottom of the screen?

Started by SpellSword, July 26, 2007, 01:40:56 PM

Previous topic - Next topic

SpellSword

I'm trying to build a windowed program with a large static image overlaying the entire screen/window, and I've run into a snag.

Both the program's screen and the image I'm trying to render to it are 640,480 in size. When I run it in fullscreen, there's no problem and it fills the screen. However, when I run it in a window of the same size as the image, it extends off the bottom of the window cutting off a good portion of the image.

Rem Set screen size to 640,480 32Bit Window
OpenScreen 640,480,32,1

Rem Note: The image.bmp file is 640,480 in size.
Rem Load and draw the image (Plus Sync to display it)
LoadImage "Images\image.bmp",1
DrawImage 1,0,0,0
sync
WaitKey


What am I missing?  ???
When I dream,
I carry a sword in one hand,
a gun in the other...

kevin


it's an old bug (PB1.63 and bellow) you'll have to oversize the screen when in windowed mode.   

SpellSword

Thanks for the work around. (Easy to implement as well! Huzzah!)

I know it's a simple thing, but it was driving me crazy trying to figure out where I'd made an error.
When I dream,
I carry a sword in one hand,
a gun in the other...

Adaz

Quote from: kevin on July 27, 2007, 06:52:41 PM

it's an old bug (PB1.63 and bellow) you'll have to oversize the screen when in windowed mode.   
I imitate the full screen to avoid alt-tab and other problems: I use a desktop-sized (currently 1024x768) window without borders. It cannot be oversized, because it's full screen :( The sides of the window are out of sight.
What can I do?

EDIT: Is it possible to migrate the revised code from 1.69 to 1.63i? :-)

Ádáz

Hungary

kevin


Fixed in PB1.63j   (or it should be :)) 1.63j Beta

QuoteEDIT: Is it possible to migrate the revised code from 1.69 to 1.63i? :-)

  Only if you don't Perspective/ Entity/ 3D sprites.. :)




Adaz


Ádáz

Hungary