+ setDefaultValues

This commit is contained in:
Julian Hinxlage 2019-11-12 16:25:57 +01:00
parent a42af25abc
commit 051f366411
2 changed files with 5 additions and 2 deletions

View File

@ -8,11 +8,12 @@
// NOLINT
void initialize(int pid) {
impl.sharedMemoryPid = pid;
impl.sharedMemoryKey = 12345;// NOLINT
impl.sharedMemorySize = 8000;// NOLINT
setDefaultValues();
}
void setDefaultValues(){
if(getSharedMemory() != nullptr) {
//set default values
setCharactersPerRow(60);// NOLINT

View File

@ -23,6 +23,8 @@
*/
void initialize(int pid);
void setDefaultValues();
/**
* set pixel at a x,y position to a certain color.
* @param x x coordinate of pixel