English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 16 December 2013, 22:56   #1
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Happy 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
AGS is offline  
Old 16 December 2013, 23:17   #2
thomas
Registered User
 
thomas's Avatar
 
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.
thomas is offline  
Old 16 December 2013, 23:26   #3
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
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.
AGS is offline  
Old 17 December 2013, 08:17   #4
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Is there a way to be notified when User changes palette settings in prefs?
AGS is offline  
Old 17 December 2013, 09:50   #5
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,002
Add a DOS notify on env:sys/palette.prefs.
thomas is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:07.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07211 seconds with 13 queries