/[pcsx2_0.9.7]/trunk/plugins/zzogl-pg/opengl/GLWin.h
ViewVC logotype

Diff of /trunk/plugins/zzogl-pg/opengl/GLWin.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/plugins/zzogl-pg/opengl/GLWin.h	2010/12/23 11:48:33	279
+++ trunk/plugins/zzogl-pg/opengl/GLWin.h	2010/12/23 12:02:12	280
@@ -29,6 +29,9 @@
 
 #undef CreateWindow	// Undo Windows.h global namespace pollution
 
+extern void SetDeviceSize(int nNewWidth, int nNewHeight);
+extern void OnFKey(int key, int shift);
+
 class GLWindow
 {
 	private:
@@ -51,6 +54,9 @@
 		u32 width, height, depth;
 
 	public:
+		char title[256];
+		Size backbuffer;
+		
 		void SwapGLBuffers();
 		bool ReleaseContext();
 
@@ -63,9 +69,22 @@
 		bool DisplayWindow(int _width, int _height);
 		void SetTitle(char *strtitle);
 		void ResizeCheck();
+		void ProcessEvents();
+	
+		void UpdateWindowSize(int nNewWidth, int nNewHeight)
+		{
+			FUNCLOG
+			backbuffer.w = std::max(nNewWidth, 16);
+			backbuffer.h = std::max(nNewHeight, 16);
+
+			if (!(conf.fullscreen()))
+			{
+				conf.width = nNewWidth;
+				conf.height = nNewHeight;
+			}
+		}
 };
 
-
 extern GLWindow GLWin;
 
 #endif // GLWIN_H_INCLUDED

 

  ViewVC Help
Powered by ViewVC 1.1.22