Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Display/Sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,18 @@ Sprite& Sprite::resize(uint width, uint height){
if(_created == false){
logln("Sprite not cretaed");
}
return *this;
}

Sprite& Sprite::setTransparent(bool transparent){
chroma = transparent;
return *this;
}

Sprite& Sprite::setChroma(Color color){
chromaKey = color;
chroma = true;
return *this;
}

void Sprite::pushData(uint width, uint height, uint16_t* data){
Expand Down
1 change: 1 addition & 0 deletions src/UI/LowRamScreen.impl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Screen& Screen::addChild(Element* element){
}else{
children[0] = element;
}
return *this;
}

void Screen::draw(){
Expand Down
1 change: 1 addition & 0 deletions src/UI/ScrollLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ElementContainer& ScrollLayout::addChild(Element* element){
}else{
children[0] = element;
}
return *this;
}

void ScrollLayout::setScroll(uint scrollX, uint scrollY){
Expand Down