Dungeon Room Object refactor
This commit is contained in:
@@ -424,7 +424,7 @@ void Ppu::ApplyEffects() {}
|
||||
void Ppu::ComposeLayers() {}
|
||||
|
||||
void Ppu::DisplayFrameBuffer() {
|
||||
if (!screen_->IsActive()) {
|
||||
if (!screen_->is_active()) {
|
||||
screen_->Create(256, 240, 24, frame_buffer_);
|
||||
rom()->RenderBitmap(screen_.get());
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ class Ppu : public Observer, public SharedROM {
|
||||
clock_.SetFrequency(kPpuClockSpeed);
|
||||
frame_buffer_.resize(256 * 240, 0);
|
||||
screen_ = std::make_shared<gfx::Bitmap>(256, 240, 8, 0x100);
|
||||
screen_->SetActive(false);
|
||||
screen_->set_active(false);
|
||||
}
|
||||
|
||||
// Resets the PPU to its initial state
|
||||
|
||||
Reference in New Issue
Block a user