From 8fc751092676cb8ebbfd1acbfec91c53f4b19924 Mon Sep 17 00:00:00 2001 From: ALIEN Date: Thu, 15 Jun 2017 13:25:56 +0200 Subject: [PATCH] Refactor --- MAGE/MAGE/src/sprite/sprite_batch.cpp | 2 +- MAGE/MAGE/src/sprite/sprite_batch.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MAGE/MAGE/src/sprite/sprite_batch.cpp b/MAGE/MAGE/src/sprite/sprite_batch.cpp index accf2dde8..0ebd6c7a1 100644 --- a/MAGE/MAGE/src/sprite/sprite_batch.cpp +++ b/MAGE/MAGE/src/sprite/sprite_batch.cpp @@ -139,7 +139,7 @@ namespace mage { void SpriteBatch::GrowSpriteQueue() { const size_t sprite_queue_array_size = - std::max(SpriteBatch::initial_queue_size, m_sprite_queue_array_size * 2); + std::max(SpriteBatch::s_initial_queue_size, m_sprite_queue_array_size * 2); UniquePtr< SpriteInfo[] > sprite_queue(new SpriteInfo[sprite_queue_array_size]); for (size_t i = 0; i < m_sprite_queue_size; ++i) { diff --git a/MAGE/MAGE/src/sprite/sprite_batch.hpp b/MAGE/MAGE/src/sprite/sprite_batch.hpp index fd14387e6..d160306d2 100644 --- a/MAGE/MAGE/src/sprite/sprite_batch.hpp +++ b/MAGE/MAGE/src/sprite/sprite_batch.hpp @@ -545,6 +545,6 @@ namespace mage { The initial size of the queue containing the sprites waiting to be drawn by a sprite batch. */ - static const size_t initial_queue_size = 64; + static const size_t s_initial_queue_size = 64; }; } \ No newline at end of file