diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-25 00:31:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-25 00:31:58 +0300 |
commit | f0f4f43d1263f946be23b75de4de28a4731cc93a (patch) | |
tree | a572d7d28c42f727c94a70d3eedb03c2c63248b2 /src/render/graphics.cpp | |
parent | 1f4cf5720cd6c432c2544d34a804c96b8c7858f0 (diff) | |
download | manaverse-f0f4f43d1263f946be23b75de4de28a4731cc93a.tar.gz manaverse-f0f4f43d1263f946be23b75de4de28a4731cc93a.tar.bz2 manaverse-f0f4f43d1263f946be23b75de4de28a4731cc93a.tar.xz manaverse-f0f4f43d1263f946be23b75de4de28a4731cc93a.zip |
Add restrict keyword into graphicsdef.hpp
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r-- | src/render/graphics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp index fc1bb6223..1fa8ebce1 100644 --- a/src/render/graphics.cpp +++ b/src/render/graphics.cpp @@ -169,7 +169,7 @@ void Graphics::setMainFlags(const int w, const int h, const bool fs, const bool hwaccel, const bool resize, - const bool noFrame) + const bool noFrame) restrict2 { logger->log("graphics backend: %s", getName().c_str()); logger->log("Setting video mode %dx%d %s", @@ -185,7 +185,7 @@ void Graphics::setMainFlags(const int w, const int h, setScale(scale); } -void Graphics::setScale(int scale) +void Graphics::setScale(int scale) restrict2 { if (isAllowScale()) { @@ -591,7 +591,7 @@ int Graphics::getHeight() const void Graphics::drawNet(const int x1, const int y1, const int x2, const int y2, - const int width, const int height) + const int width, const int height) restrict2 { for (int y = y1; y < y2; y += height) drawLine(x1, y, x2, y); @@ -608,7 +608,7 @@ void Graphics::setWindowSize(const int width A_UNUSED, #endif } -void Graphics::pushClipArea(const Rect &area) +void Graphics::pushClipArea(const Rect &restrict area) restrict2 { // Ignore area with a negate width or height // by simple pushing an empty clip area @@ -670,7 +670,7 @@ void Graphics::pushClipArea(const Rect &area) } } -void Graphics::popClipArea() +void Graphics::popClipArea() restrict2 { if (mClipStack.empty()) return; |