Login
Back to forumSee the full topicGo to last reply

Posted By

gerliczer
on 2012-08-11
04:39:27
 Re: Combing Text and freely placeable bitmaps on screen

George,

If there is no more code before you start copying the luminance and colour data and you try to use variable q without any modification, then you copy from the wrong place. You see, you picture is 11 characters high which is an odd number and this ROM routine copies two vectors which is an even number. However you may try to multiply an even number with any integer the result will always be even. In your case this may mean that you copied 12*56 bytes instead of 11*56 which also may mean that you copy part of the colour data into the luminance matrix and you partly fill the colour matrix with memory garbage. But this would be only true if you not compensate for the even-odd issue. If you do then show us you code and we surely will help finding the bug.



Back to top


Copyright © Plus/4 World Team, 2001-2024