mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-13 22:32:03 +00:00
Re-revokes fine scroll on the top two lines when requested.
This commit is contained in:
parent
ca26dfcd61
commit
aac97a8983
@ -650,15 +650,17 @@ void Base::draw_sms(int start, int end) {
|
|||||||
|
|
||||||
// Shift the output window by the fine scroll amount, and fill in
|
// Shift the output window by the fine scroll amount, and fill in
|
||||||
// any border pixels that leaves on the left-hand side.
|
// any border pixels that leaves on the left-hand side.
|
||||||
start -= master_system_.horizontal_scroll & 7;
|
if(row_ >= 16 || !master_system_.horizontal_scroll_lock) {
|
||||||
end -= master_system_.horizontal_scroll & 7;
|
start -= master_system_.horizontal_scroll & 7;
|
||||||
if(start < 0) {
|
end -= master_system_.horizontal_scroll & 7;
|
||||||
while(start < end && start < 0) {
|
if(start < 0) {
|
||||||
*pixel_target_ = master_system_.colour_ram[16 + background_colour_];
|
while(start < end && start < 0) {
|
||||||
++pixel_target_;
|
*pixel_target_ = master_system_.colour_ram[16 + background_colour_];
|
||||||
++start;
|
++pixel_target_;
|
||||||
|
++start;
|
||||||
|
}
|
||||||
|
if(start == end) return;
|
||||||
}
|
}
|
||||||
if(start == end) return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const int shift = start & 7;
|
const int shift = start & 7;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user