mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-20 10:17:05 +00:00
Increase consts.
This commit is contained in:
@@ -114,7 +114,7 @@ private:
|
||||
static constexpr int interrupt_duration = 64;
|
||||
|
||||
public:
|
||||
void run_for(HalfCycles duration) {
|
||||
void run_for(const HalfCycles duration) {
|
||||
static constexpr auto timings = get_timings();
|
||||
|
||||
static constexpr int sync_line = (timings.interrupt_time / timings.half_cycles_per_line) + 1;
|
||||
@@ -328,7 +328,7 @@ public:
|
||||
/*!
|
||||
@returns The amount of time until the next change in the interrupt line, that being the only internally-observeable output.
|
||||
*/
|
||||
HalfCycles next_sequence_point() {
|
||||
HalfCycles next_sequence_point() const {
|
||||
static constexpr auto timings = get_timings();
|
||||
|
||||
// Is the frame still ahead of this interrupt?
|
||||
@@ -407,7 +407,7 @@ public:
|
||||
written to contended memory. This is what will be returned if the floating
|
||||
bus is accessed when the gate array isn't currently reading.
|
||||
*/
|
||||
void set_last_contended_area_access([[maybe_unused]] uint8_t value) {
|
||||
void set_last_contended_area_access([[maybe_unused]] const uint8_t value) {
|
||||
if constexpr (timing == Timing::Plus3) {
|
||||
last_contended_access_ = value | 1;
|
||||
}
|
||||
@@ -416,13 +416,13 @@ public:
|
||||
/*!
|
||||
Sets the current border colour.
|
||||
*/
|
||||
void set_border_colour(uint8_t colour) {
|
||||
void set_border_colour(const uint8_t colour) {
|
||||
border_byte_ = colour;
|
||||
border_colour_ = palette[colour];
|
||||
}
|
||||
|
||||
/// Sets the scan target.
|
||||
void set_scan_target(Outputs::Display::ScanTarget *scan_target) {
|
||||
void set_scan_target(Outputs::Display::ScanTarget *const scan_target) {
|
||||
crt_.set_scan_target(scan_target);
|
||||
}
|
||||
|
||||
@@ -432,7 +432,7 @@ public:
|
||||
}
|
||||
|
||||
/*! Sets the type of display the CRT will request. */
|
||||
void set_display_type(Outputs::Display::DisplayType type) {
|
||||
void set_display_type(const Outputs::Display::DisplayType type) {
|
||||
crt_.set_display_type(type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user