Making ComplexBitMap a POD part 1
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <PSX/System/IOPorts/GPU_IO.hpp>
|
||||
|
||||
namespace GPU {
|
||||
static void quick_fill_fast(const Color& color, const PositionU16& pos, const SizeU16& size) {
|
||||
static void quick_fill_fast(const Color24& color, const PositionU16& pos, const SizeU16& size) {
|
||||
Port::GP0.write(Port::Command::GP0::QuickFill(color));
|
||||
Port::GP0.write(Port::Command::GP0::TopLeftPosition(pos.x, pos.y));
|
||||
Port::GP0.write(Port::Command::GP0::WidthHeight(size.width, size.height));
|
||||
|
@@ -6,13 +6,13 @@ namespace GPU {
|
||||
|
||||
void display_logo() {
|
||||
Display::disable();
|
||||
quick_fill_fast(Color(0x0, 0x80, 0x80), PositionU16(0, 0), SizeU16(640, 480));
|
||||
quick_fill_fast(Color24(0x0, 0x80, 0x80), PositionU16(0, 0), SizeU16(640, 480));
|
||||
Display::enable();
|
||||
}
|
||||
|
||||
void setup() {
|
||||
Port::GP1.write(Port::Command::GP1::Reset());
|
||||
|
||||
quick_fill_fast(Color::Black(), PositionU16(0, 0), SizeU16(640, 480));
|
||||
quick_fill_fast(Color24::Black(), PositionU16(0, 0), SizeU16(640, 480));
|
||||
}
|
||||
}
|
@@ -33,7 +33,7 @@ namespace SPU {
|
||||
voice.sampleRate.write(SampleRate());
|
||||
voice.ad.write(AD());
|
||||
voice.sr.write(SR());
|
||||
voice.currentVolume.write(SweepVolume());
|
||||
voice.currentVolume.write(SimpleVolume(0));
|
||||
|
||||
voice.adr.write(0x200);
|
||||
voice.repeatAdr.write(0x200);
|
||||
|
Reference in New Issue
Block a user