From 0a342e0492ee88b43f63ec3e3a17c463fad2bf09 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Wed, 23 Oct 2013 21:38:13 +0000 Subject: Implement window size setting for PeopsSoftGL on OS X. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87642 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFXVideo/macsrc/PluginGLView.m | 34 --------------------------- 1 file changed, 34 deletions(-) (limited to 'macosx/plugins/DFXVideo/macsrc/PluginGLView.m') diff --git a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m index fee2eb54..09375671 100755 --- a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m @@ -309,15 +309,6 @@ void BlitScreen16NS(unsigned char * surf,long x,long y) // Make this context current [[self openGLContext] makeCurrentContext]; - // Loads the shaders - //shader=LoadShader(GL_VERTEX_SHADER,"/Users/alexandremathieu/vertex.c"); - //program=glCreateProgram(); - //glAttachShader(program, shader); - //glLinkProgram(program); - //if(program == 0){ - // printf("Program invalide bourdel\n"); - //} - if (PSXDisplay.Disabled) { glClear(GL_COLOR_BUFFER_BIT); } else { @@ -735,31 +726,6 @@ void BlitScreen16NS(unsigned char * surf,long x,long y) // [self setNeedsDisplay:true]; } } -/* -- (void)mouseDown:(NSEvent *)theEvent -{ - PluginWindowController *controller = [[self window] windowController]; - - static unsigned long lastTime = 0; - unsigned long time; - - time = TickCount(); - - if (lastTime != 0) { - if (time - lastTime > GetDblTime()) { - if (isFullscreen) { - [[self openGLContext] clearDrawable]; - } else { - [[self openGLContext] setFullScreen]; - } - isFullscreen = 1-isFullscreen; - lastTime = 0; - return; - } - } - - lastTime = time; -}*/ - (GLuint)loadShader:(GLenum)type location:(NSURL*)filename { -- cgit v1.2.3