16 December 2013, 22:56 | #1 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
DrawBorder() ignores MaxPen?
Hi,
I think that I have encountered a Problem with Intuition Borders and Graphics Library MaxPen. After a call to SetMaxPen() to a lower value than the display depth allows, then drawing borders with DrawBorder(), the borders have still colors of all planes. Is this a bug in my concept or is it OS and is there a workaround for this? a |
16 December 2013, 23:17 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
Code:
FUNCTION This will instruct the graphics library that the owner of the rastport will not be rendering in any colors whose index is >maxpen. If there are any speed optimizations which the graphics device can make based on this fact (for instance, setting the pixel write mask), they will be done. Basically this call sets the rastport mask, if this would improve speed. On devices where masking would slow things down (like with chunky pixels), it will be a no-op. This mainly says that *you* are responsible to not use pens which are > MaxPen. If you do so anyway, it's your problem. |
16 December 2013, 23:26 | #3 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Thanks for the hint, I have read this twice and thrice already but did not get the point.
|
17 December 2013, 08:17 | #4 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Is there a way to be notified when User changes palette settings in prefs?
|
17 December 2013, 09:50 | #5 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
Add a DOS notify on env:sys/palette.prefs.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"It came from the desert" ignores PRELOAD | Gaula92 | project.WHDLoad | 3 | 21 October 2011 13:35 |
|
|