aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/opengl-graphics.h
diff options
context:
space:
mode:
authorThierry Crozat2016-10-16 18:42:40 +0100
committerGitHub2016-10-16 18:42:40 +0100
commit5151bd99dd8bc342a1367c558892d5486826941c (patch)
tree290e6458cbfc728f5415cff213dc813913f17bc9 /backends/graphics/opengl/opengl-graphics.h
parentabc4656cc00f11091210213058a883718442b7b7 (diff)
parentaa39a6ce4b2285d1308eb4607bdd53d317304661 (diff)
downloadscummvm-rg350-5151bd99dd8bc342a1367c558892d5486826941c.tar.gz
scummvm-rg350-5151bd99dd8bc342a1367c558892d5486826941c.tar.bz2
scummvm-rg350-5151bd99dd8bc342a1367c558892d5486826941c.zip
Merge pull request #847 from criezy/sdl-filtering
Add graphics linear filtering feature
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.h')
-rw-r--r--backends/graphics/opengl/opengl-graphics.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.h b/backends/graphics/opengl/opengl-graphics.h
index 7900f06fb7..01672f4f5c 100644
--- a/backends/graphics/opengl/opengl-graphics.h
+++ b/backends/graphics/opengl/opengl-graphics.h
@@ -50,8 +50,7 @@ class Shader;
#endif
enum {
- GFX_LINEAR = 0,
- GFX_NEAREST = 1
+ GFX_OPENGL = 0
};
class OpenGLGraphicsManager : virtual public GraphicsManager {
@@ -213,7 +212,7 @@ private:
#ifdef USE_RGB_COLOR
gameFormat(),
#endif
- aspectRatioCorrection(false), graphicsMode(GFX_LINEAR) {
+ aspectRatioCorrection(false), graphicsMode(GFX_OPENGL), filtering(true) {
}
bool valid;
@@ -224,6 +223,7 @@ private:
#endif
bool aspectRatioCorrection;
int graphicsMode;
+ bool filtering;
bool operator==(const VideoState &right) {
return gameWidth == right.gameWidth && gameHeight == right.gameHeight
@@ -231,7 +231,8 @@ private:
&& gameFormat == right.gameFormat
#endif
&& aspectRatioCorrection == right.aspectRatioCorrection
- && graphicsMode == right.graphicsMode;
+ && graphicsMode == right.graphicsMode
+ && filtering == right.filtering;
}
bool operator!=(const VideoState &right) {