summaryrefslogtreecommitdiff
path: root/src/nes/display.cc
blob: 4ff1d5f1488c1d8cedf8055187bc29c3bb33aab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "nes/display.hh"
#include "nes/util/rgb.hh"

namespace nes
{
	auto display::clear(rgb const color) -> void
	{
		for (auto y = unsigned{ 0 }; y < height; ++y)
		{
			for (auto x = unsigned{ 0 }; x < width; ++x)
			{
				set(x, y, color);
			}
		}
	}
} // namespace nes