From 9fae9dfbc12525cdba4451d92f93c66bb6077b35 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 10 Dec 2018 20:53:50 +0100 Subject: Fixes, automatic resize(linux) --- AmpelJonas/cRender.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'AmpelJonas/cRender.h') diff --git a/AmpelJonas/cRender.h b/AmpelJonas/cRender.h index 848619d..30077e9 100644 --- a/AmpelJonas/cRender.h +++ b/AmpelJonas/cRender.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include @@ -96,6 +97,9 @@ public: int getLastError(); //Returns last Error that was not returnable + sPos getSize(); + //Returns actual Size of screen + protected: cRender(); //Empty Constructor for being inheritable @@ -124,4 +128,8 @@ private: //Slightly adapted from: http://www.cplusplus.com/forum/windows/121444/ #endif void gotoxy( int x, int y ); + void setBufferSize(sPos _size); +#ifdef __linux__ + sPos getConsoleWindowSize(); +#endif }; -- cgit v1.2.3