Forum Rule: Always post complete source code & details to reproduce any issue!
-
All fixed:
PXP_OUT_PS_LRC had to be set to ((479) << 16) | (319); (was 480, 320)
and
PXP_OUT_LRC has to be set to ((95) << 16) | (319); (was 96, 320)
-

Originally Posted by
Rezo
All fixed:
PXP_OUT_PS_LRC had to be set to ((479) << 16) | (319); (was 480, 320)
and
PXP_OUT_LRC has to be set to ((95) << 16) | (319); (was 96, 320)
Yeah, I got so tired of making that mistake that I wrote a macro to remind myself that I'm setting a corner:
#define SetCorner(reg, h, v) reg = (h<<16 + v)
The macro is used like this:
SetCorner(PXP_OUT_PS_LRC, width-1,height-1);
I thought about doing the subtraction in the macro, but that would have serious consequences if you called it for an upper left corner:
SetCorner(PXP_OUT_PS_ULC, 0,0); // Not good if you subtract one inside macro
Last edited by mborgerson; 02-05-2023 at 03:34 PM.
Reason: spelling error
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules