From f0f4f43d1263f946be23b75de4de28a4731cc93a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Dec 2015 00:31:58 +0300 Subject: Add restrict keyword into graphicsdef.hpp --- src/render/graphics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/render/graphics.cpp') 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; -- cgit v1.2.3-60-g2f50