Formatting
UI7 Docs/Sizing
R2::GetCurrentScreenSize
Hardware Fix BatteryPercent/AddGetWifiLevel
This commit is contained in:
2024-06-16 22:28:16 +02:00
parent ec8743417d
commit 56fd24ed80
13 changed files with 87 additions and 55 deletions

View File

@@ -34,9 +34,7 @@ void RenderD7::Sheet::Free() {
this->spritesheet = nullptr;
}
RenderD7::Image::Ref RenderD7::Sheet::GetImage(int idx) {
if (!this->spritesheet) return nullptr;
Image::Ref img = Image::New();
img->GetRef() = C2D_SpriteSheetGetImage(this->spritesheet, idx);
return img;
C2D_Image RenderD7::Sheet::GetImage(int idx) {
if (!this->spritesheet) return {nullptr, nullptr};
return C2D_SpriteSheetGetImage(this->spritesheet, idx);
}