This forum is for general developer support questions.
ZeroG
Posts: 124 Joined: Sat Jun 18, 2011 12:31 pm
Location: Germany
Post
by ZeroG » Fri Jul 13, 2012 8:08 pm
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?
thomasrapp
Posts: 318 Joined: Sun Jun 19, 2011 12:22 am
Post
by thomasrapp » Fri Jul 13, 2012 9:52 pm
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.
ZeroG
Posts: 124 Joined: Sat Jun 18, 2011 12:31 pm
Location: Germany
Post
by ZeroG » Sat Jul 14, 2012 7:24 am
@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.