Page 1 of 1
OpenWindowedScreen only 800x600 ?
Posted: Mon Jun 09, 2003 1:58 pm
by sigi
Hi,
If i try OpenWindowedScreen() greater then 800x600 my Proggie crashes.
My Desktop has 1024x768. Why this?

Posted: Mon Jun 09, 2003 2:49 pm
by Searhin
no problem here, even if the WindowedScreen is larger than the parent window.
Maybe if you paste your code in the forum someone can help you.

piece of code
Posted: Mon Jun 09, 2003 3:52 pm
by sigi
Hi, if i change OpenWindowedScreen bigger than 800x600 it crashes.
Here a piece of the Code...
If InitEngine3D()
Add3DArchive("Data\", #PB_3DArchive_FileSystem)
Add3DArchive("Data\skybox1.zip", #PB_3DArchive_Zip)
If OpenWindow(#ROOT_WINDOW,0,0,800,600, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered,"PureWorlds 0.1")
CreateMenu(0, WindowID(#ROOT_WINDOW))
MenuTitle("Project")
MenuItem(1, "New")
MenuItem(#MENU_ITEM_QUIT, "Quit")
MenuTitle("Objects")
MenuItem(3,"Load...")
MenuTitle("Sky")
MenuItem(4,"Load SkyBox...")
MenuItem(5,"Load SkyDome...")
MenuTitle("Lights")
MenuItem(6,"Change Ambient Light...")
MenuTitle("Textures")
MenuItem(7,"Load Texture...")
MenuTitle("Particle")
MenuItem(8,"New Particles...")
MenuTitle("About")
MenuItem(#MENU_ITEM_ABOUT, "About...")
If InitKeyboard()
If InitMouse()
If InitSprite()
If OpenWindowedScreen(WindowID(#ROOT_WINDOW),0,MenuHeight(),800,600-MenuHeight(),0,0,0)
CreateCamera(0, 0, 0, 100, 100)
CameraLocate(0, 0, 0, 100)
SetFrameRate(60)
AmbientColor(RGB(red,green,blue))
Repeat
EventID.l = WindowEvent()
If EventWindowID() = #ROOT_WINDOW
Select EventID
Thanks for looking in to it.
Posted: Mon Jun 09, 2003 5:52 pm
by Kale
code incomplete, try using 'code' tags
Code is not complete
Posted: Mon Jun 09, 2003 7:57 pm
by sigi
This should do it.
There is nothing important in the following code that has to do with
my problem, i think. Only Gadget Stuff and so on. The Rest is working ok.
Does the Screen3DRequester-Examples in the Examples Directory not
only shows 800x600 in OpenWindowedScreenMode ? On my PC it is so.
I have a 2GH Pentium 4, 512 MB Ram, Windows XP Home.