Jump to content

  • Log In with Google      Sign In   
  • Create Account


Changing Resolution


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Metus   Members   -  Reputation: 168

Like
Likes
Like

Posted 12 July 2001 - 07:38 AM

I''m writing a OpenGL Version of the Snes emulator Zsnes and got a problem; When Changing from Fullscreen (WS_POPUP) to Windowed (WS_POPUP) I''ve got 2 Instances.. My basic code is: if(hWnd) { CloseWindow(hWnd) UnregisterClass("Zsnes", hInst) } InitOpenGL(Width, Height, Depth, Fullscreen (true/false)) any ideas that''s wring

Sponsor:

#2 Obelix   Members   -  Reputation: 122

Like
Likes
Like

Posted 13 July 2001 - 05:51 PM

Do you not have to destroy the window and other stuff?
Check the NeHe base code.


#3 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 14 July 2001 - 03:47 AM

quote:
Original post by Obelix
Do you not have to destroy the window and other stuff?
Check the NeHe base code.



I''ve been looking to NeHe''s base code, and it''s similar to mine, though he works and mine not!

If i Destroy the Window, Nothing happens at all..=

#4 GandalfDerGraue   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 July 2001 - 08:50 AM

Well. i think there is no need of destroying the Window...
you can change the WindowStyles "on the fly". youll just have to repaint your window.
but since you are going to change the resolution you are going to repaint it anyway.

  
SetWindowLong(hWnd,GWL_EXSTYLE,WndStyle[_ffullscreen].ExWndStyle);
SetWindowLong(hWnd,GWL_STYLE,WndStyle[_ffullscreen].WndStyle);


Well WndStyle is an instance of a structure i made wich holds the windowStyles...

Hmm i dont know if this helps. but maybe..

cu

GDG




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS