mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +00:00
Corrects a couple of cast conversion errors.
This commit is contained in:
parent
ad9df4bb90
commit
c13f8e5390
@ -97,7 +97,7 @@ void VideoOutput::run_for(const Cycles cycles) {
|
|||||||
paper_ = 0x0;
|
paper_ = 0x0;
|
||||||
use_alternative_character_set_ = use_double_height_characters_ = blink_text_ = false;
|
use_alternative_character_set_ = use_double_height_characters_ = blink_text_ = false;
|
||||||
set_character_set_base_address();
|
set_character_set_base_address();
|
||||||
pixel_target_ = reinterpret_cast<uint16_t *>(crt_->allocate_write_area(240, 2));
|
pixel_target_ = reinterpret_cast<uint16_t *>(crt_->allocate_write_area(240));
|
||||||
|
|
||||||
if(!counter_) {
|
if(!counter_) {
|
||||||
frame_counter_++;
|
frame_counter_++;
|
||||||
|
@ -153,7 +153,7 @@ template <class T> class Filter: public Speaker {
|
|||||||
unsigned int cycles_to_read = static_cast<unsigned int>(buffer_in_progress_.size() - static_cast<size_t>(buffer_in_progress_pointer_));
|
unsigned int cycles_to_read = static_cast<unsigned int>(buffer_in_progress_.size() - static_cast<size_t>(buffer_in_progress_pointer_));
|
||||||
if(cycles_to_read > cycles_remaining) cycles_to_read = cycles_remaining;
|
if(cycles_to_read > cycles_remaining) cycles_to_read = cycles_remaining;
|
||||||
|
|
||||||
static_cast<T *>(this)->get_samples(cycles_to_read, &buffer_in_progress_[static_cast<size_t>(buffer_in_progress_pointer_]));
|
static_cast<T *>(this)->get_samples(cycles_to_read, &buffer_in_progress_[static_cast<size_t>(buffer_in_progress_pointer_)]);
|
||||||
buffer_in_progress_pointer_ += cycles_to_read;
|
buffer_in_progress_pointer_ += cycles_to_read;
|
||||||
|
|
||||||
// announce to delegate if full
|
// announce to delegate if full
|
||||||
|
Loading…
Reference in New Issue
Block a user