Made CVideo::render_screen private

It's not supposed to be called outside events::pump.
This commit is contained in:
Charles Dang 2018-03-20 10:33:58 +11:00
parent 504d4d2ff4
commit 123dd952c0

View file

@ -163,9 +163,14 @@ public:
*/
void blit_surface(int x, int y, surface surf, SDL_Rect* srcrect = nullptr, SDL_Rect* clip_rect = nullptr);
/** Renders the screen. Should normally not be called directly! */
private:
/** Renders the screen. */
void render_screen();
/** events::pump() is the only place that should call render_screen(). */
friend void events::pump();
public:
void render_copy(const texture& txt,
SDL_Rect* src_rect = nullptr,
SDL_Rect* dst_rect = nullptr,