summaryrefslogtreecommitdiff
path: root/macosx/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/plugins')
-rwxr-xr-xmacosx/plugins/DFXVideo/macsrc/PluginConfigController.m4
-rwxr-xr-xmacosx/plugins/DFXVideo/macsrc/PluginGLView.m2
-rwxr-xr-xmacosx/plugins/DFXVideo/macsrc/PluginWindowController.m4
3 files changed, 5 insertions, 5 deletions
diff --git a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m
index 75b2433f..deb52926 100755
--- a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m
+++ b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m
@@ -204,8 +204,8 @@ void ReadConfig(void)
[writeDic setObject:[NSNumber numberWithBool:[vSync intValue]] forKey:@"VSync"];
[writeDic setObject:[NSNumber numberWithBool:[hackEnable intValue]] forKey:@"Enable Hacks"];
[writeDic setObject:[NSNumber numberWithBool:[shaders intValue]] forKey:@"UseShader"];
- [writeDic setObject:[NSNumber numberWithInt:[shaderQualitySelector indexOfSelectedItem] + 1] forKey:@"ShaderQuality"];
- [writeDic setObject:[NSNumber numberWithInt:[ditherMode indexOfSelectedItem]] forKey:@"Dither Mode"];
+ [writeDic setObject:[NSNumber numberWithInteger:[shaderQualitySelector indexOfSelectedItem] + 1] forKey:@"ShaderQuality"];
+ [writeDic setObject:[NSNumber numberWithInteger:[ditherMode indexOfSelectedItem]] forKey:@"Dither Mode"];
unsigned int hackValues = 0;
NSArray *views = [hacksView subviews];
diff --git a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m
index f17e1f5b..39cfb5ad 100755
--- a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m
+++ b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m
@@ -695,7 +695,7 @@ void BlitScreen16NS(unsigned char * surf,long x,long y)
}
else
{
- int LineOffset,SurfOffset;
+ long LineOffset,SurfOffset;
GLuint * SRCPtr = (GLuint *)(psxVuw + (y << 10) + x);
GLuint * DSTPtr =
((GLuint *)surf) + (PreviousPSXDisplay.Range.x0 >> 1);
diff --git a/macosx/plugins/DFXVideo/macsrc/PluginWindowController.m b/macosx/plugins/DFXVideo/macsrc/PluginWindowController.m
index 47d9a512..a45a00f3 100755
--- a/macosx/plugins/DFXVideo/macsrc/PluginWindowController.m
+++ b/macosx/plugins/DFXVideo/macsrc/PluginWindowController.m
@@ -118,8 +118,8 @@ NSRect windowFrame;
//[window orderOut:self];
}
- int width = CGDisplayPixelsWide(display);
- int height = CGDisplayPixelsHigh(display);
+ size_t width = CGDisplayPixelsWide(display);
+ size_t height = CGDisplayPixelsHigh(display);
// assume square pixel ratio on the monitor
if ((width*3)/4 < height) {