Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #449: From Windowed to Switch Fullscreen bug
Product:
TV3D SDK 6.5
Language:
Visual Basic.NET
Current State:
Closed
Resolution:
Fixed
Created On:
July 6th, 2005
Last Modified:
April 10th, 2006
Reported By:
GoGlay
I talked to BarryR about this and he was able to reproduce it. What happens is, instead of switching to fullscreen, the titlebar dissappears on the form and makes the form smaller as well.


using following init code:
.Init3DWindowed(GetAppInstance.Handle)
Viewport = .CreateViewport(GetAppInstance.designer.Handle.ToInt32, "Viewport 1")
Viewport.SetAutoResize(True)
.SetViewport(Viewport)



here's the switcher:
Public Property Fullscreen() As Boolean
Get
Return bFullscreen
End Get
Set(ByVal Value As Boolean)
bFullscreen = Value
If bFullscreen Then
Dim iwidth, iheight, iformat As Integer
Engine.GetVideoMode(iwidth, iheight, iformat)
Engine.SwitchFullscreen(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, iformat, CONST_TV_DEPTHBUFFERFORMAT.TV_DEPTHBUFFER_32BITS, GetAppInstance.Handle)
Else
Engine.SwitchWindowed(GetAppInstance.designer.Handle)
GetAppInstance.Refresh()
End If
End Set
End Property

Comments:

Posted by SylvainTV on July 7th, 2005 at 3:07 PM
I don't know why you are creating 1 viewport?

there is one automatically generated when you init in windowed mode or fullscreen mode. You can get it by doing TV.GetViewport after init.

moreover in fullscreen you can only have one viewport. If the second viewport is currently set, it won't work when you switch.

Let me know
Posted by SylvainTV on April 10th, 2006 at 1:54 AM
Well maybe it is ok then ;)