mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-27 22:30:49 +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>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#define SUPPLY_COMPOSITE
|
||||||
|
|
||||||
using namespace Oric;
|
using namespace Oric;
|
||||||
|
|
||||||
namespace {
|
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_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);
|
crt_.set_phase_linked_luminance_offset(-1.0f / 8.0f);
|
||||||
data_type_ = Outputs::Display::InputDataType::Red1Green1Blue1;
|
data_type_ = Outputs::Display::InputDataType::Red1Green1Blue1;
|
||||||
|
crt_.set_input_data_type(data_type_);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoOutput::set_display_type(Outputs::Display::DisplayType display_type) {
|
void VideoOutput::set_display_type(Outputs::Display::DisplayType display_type) {
|
||||||
|
crt_.set_display_type(display_type);
|
||||||
|
|
||||||
|
#ifdef SUPPLY_COMPOSITE
|
||||||
const auto data_type =
|
const auto data_type =
|
||||||
(display_type == Outputs::Display::DisplayType::RGB) ?
|
(display_type == Outputs::Display::DisplayType::RGB) ?
|
||||||
Outputs::Display::InputDataType::Red1Green1Blue1 :
|
Outputs::Display::InputDataType::Red1Green1Blue1 :
|
||||||
Outputs::Display::InputDataType::PhaseLinkedLuminance8;
|
Outputs::Display::InputDataType::PhaseLinkedLuminance8;
|
||||||
|
#else
|
||||||
|
const auto data_type = Outputs::Display::InputDataType::Red1Green1Blue1;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(data_type_ != data_type) {
|
if(data_type_ != data_type) {
|
||||||
data_type_ = data_type;
|
data_type_ = data_type;
|
||||||
crt_.set_display_type(display_type);
|
|
||||||
crt_.set_input_data_type(data_type_);
|
crt_.set_input_data_type(data_type_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user