Page 1 of 1

Bug in asl.library 53.45 (4.1u4)?

Posted: Fri Jul 13, 2012 8:08 pm
by ZeroG

Code: Select all

#include <proto/exec.h>
#include <proto/asl.h>

void main()
{
    struct ScreenModeRequester *sreq = NULL;
    sreq = IAsl->AllocAslRequestTags(ASL_ScreenModeRequest, ASLSM_PubScreenName, "Workbench",
                                                            ASLSM_MinHeight, 800,
                                                            ASLSM_MinWidth, 800,
                                                            ASLSM_MaxHeight, 800,
                                                            ASLSM_MaxWidth, 800,
                                                            TAG_DONE);
   IAsl->AslRequest(sreq, NULL);
   IAsl->FreeAslRequest(sreq);  

The requester i get with this code completely ignores the ASLSM_Min/Max tags (4.1u4 asl 53.45).
Is this a bug or did i miss something?

Re: Bug in asl.library 53.45 (4.1u4)?

Posted: Fri Jul 13, 2012 9:52 pm
by thomasrapp
Your code is lacking ASLSM_DoWidth and ASLSM_DoHeight to show any effect. It seems like you didn't understand what these tags are good for. They don't filter screen modes, they limit what the user may enter into the Width and Height input fields.

If you want to filter screen modes you need to write a ASLSM_FilterFunc.

Re: Bug in asl.library 53.45 (4.1u4)?

Posted: Sat Jul 14, 2012 7:24 am
by ZeroG
@thomas
OK, thanks.

@SDK-Team
The autodoc should be fixed to make this more clear.
This:
ASLSM_MinWidth (uint32)
The minimum display width to let the user choose. (V38)

Default is 16.

ASLSM_MaxWidth (uint32)
The maximum display width to let the user choose. (V38)

Default is 16368.

ASLSM_MinHeight (uint32)
The minimum display height to let the user choose. (V38)

Default is 16.

ASLSM_MaxHeight (uint32)
The maximum display height to let the user choose. (V38)

Default is 16384.

ASLSM_MinDepth (uint16)
The minimum display depth to let the user choose. (V38)

Default is 1.

ASLSM_MaxDepth (uint16)
The maximum display depth to let the user choose. (V38)

Default is 24.
should be:
ASLSM_MinWidth (uint32)
The minimum display width of the Width gadget (sm_DisplayWidth) to let the user choose. (V38)

Default is 16.

ASLSM_MaxWidth (uint32)
The maximum display width of the Width gadget (sm_DisplayWidth) to let the user choose. (V38)

Default is 16368.

ASLSM_MinHeight (uint32)
The minimum display height of the Height gadget (sm_DisplayHeight) to let the user choose. (V38)

Default is 16.

ASLSM_MaxHeight (uint32)
The maximum display height of the Height gadget (sm_DisplayHeight) to let the user choose. (V38)

Default is 16384.

ASLSM_MinDepth (uint16)
The minimum display depth of the Colors gadget (sm_DisplayDepth) to let the user choose. (V38)

Default is 1.

ASLSM_MaxDepth (uint16)
The maximum display depth of the Colors gadget (sm_DisplayDepth) to let the user choose. (V38)

Default is 24.