mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-13 22:32:03 +00:00
By #define provides a means not to use the real composite samples.
To aid with debugging.
This commit is contained in:
parent
6c1d94beaa
commit
40ee215b1b
@ -10,6 +10,8 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#define SUPPLY_COMPOSITE
|
||||
|
||||
using namespace Oric;
|
||||
|
||||
namespace {
|
||||
@ -29,16 +31,23 @@ VideoOutput::VideoOutput(uint8_t *memory) :
|
||||
crt_.set_visible_area(crt_.get_rect_for_area(54, 224, 16 * 6, 40 * 6, 4.0f / 3.0f));
|
||||
crt_.set_phase_linked_luminance_offset(-1.0f / 8.0f);
|
||||
data_type_ = Outputs::Display::InputDataType::Red1Green1Blue1;
|
||||
crt_.set_input_data_type(data_type_);
|
||||
}
|
||||
|
||||
void VideoOutput::set_display_type(Outputs::Display::DisplayType display_type) {
|
||||
crt_.set_display_type(display_type);
|
||||
|
||||
#ifdef SUPPLY_COMPOSITE
|
||||
const auto data_type =
|
||||
(display_type == Outputs::Display::DisplayType::RGB) ?
|
||||
Outputs::Display::InputDataType::Red1Green1Blue1 :
|
||||
Outputs::Display::InputDataType::PhaseLinkedLuminance8;
|
||||
#else
|
||||
const auto data_type = Outputs::Display::InputDataType::Red1Green1Blue1;
|
||||
#endif
|
||||
|
||||
if(data_type_ != data_type) {
|
||||
data_type_ = data_type;
|
||||
crt_.set_display_type(display_type);
|
||||
crt_.set_input_data_type(data_type_);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user