summaryrefslogtreecommitdiff
path: root/lib/nes/common
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-02-06 16:28:39 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-02-06 16:28:39 +0100
commit30b4364c772114303d9045677186a53855ea5343 (patch)
tree3ac3443cdea7274e688bc633fa12bf1e089d6624 /lib/nes/common
parent64308c9e520dbd8e72b675d0ba064ecdaf9bd494 (diff)
implement in-game popups
Diffstat (limited to 'lib/nes/common')
-rw-r--r--lib/nes/common/display.hh2
-rw-r--r--lib/nes/common/rgb.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/nes/common/display.hh b/lib/nes/common/display.hh
index eb35366..f7d53c1 100644
--- a/lib/nes/common/display.hh
+++ b/lib/nes/common/display.hh
@@ -25,7 +25,7 @@ namespace nes
virtual auto switch_buffers() -> void = 0;
/// Update the pixel at the given position in the back buffer.
virtual auto set(u32 x, u32 y, rgb value) -> void = 0;
- /// Load the pixel value at the given position in the back buffer.
+ /// Load the pixel value at the given position in the front buffer.
virtual auto get(u32 x, u32 y) const -> rgb = 0;
protected:
diff --git a/lib/nes/common/rgb.hh b/lib/nes/common/rgb.hh
index 0b8ec1c..b8cd0f3 100644
--- a/lib/nes/common/rgb.hh
+++ b/lib/nes/common/rgb.hh
@@ -8,7 +8,7 @@ namespace nes
class rgb
{
public:
- explicit rgb() = default;
+ rgb() = default;
explicit rgb(u8 const r, u8 const g, u8 const b)
: r{ r }