Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
125 user(s) are online (113 user(s) are browsing Forums)

Members: 1
Guests: 124

AlfredOne, more...

Support us!

Headlines

 
  Register To Post  

Double heigh screen and normal window on
Home away from home
Home away from home


See User information
@All

There some "real-amiga" question for developers working with amiga screens and windowses.


Let imagine we grab a screenmode which is 1920x1080x32. Then, we use this:

Myscreen OpenScreenTags(  NULL,
                                    
SA_Width,     screen_width,
                                    
SA_Height,    screen_height*2,
                                    
SA_DisplayIDdisplay_mode_id,
                                    
SA_Depth,     8,
                                    
SA_ShowTitleFALSE,
                                    
SA_DraggableFALSE,
                                    
TAG_DONE    );



So we open "double screen" as do back in times some games/apps to have double-buffering or whatever reassons.

So while the real screenmode is for 1920x1080, we open a screen with 1920x2160. Then, we open the same window 1920x2160 on, to render things and have double-buffering as it was done in old days.


Now, problem is:

I need to open another window on top of it , which will overwrite first half part of content and showups on the same place where old "double-buffered" window is placed.

If we open a window on this screen of original size, like:

Window OpenWindowTags(NULL,
     
WA_CustomScreen, (ULONG)Myscreen,
     
WA_IDCMPIDCMP_RAWKEY,
     
WA_Heighthardware_accelerationMyscreen->Height/Myscreen->Height,
     
WA_StayTop,TRUEWA_Activate,TRUE,
     
WA_Borderless,TRUEWA_RMBTrap,TRUE,
 
TAG_DONE);


I.e. 1920x1080, then, we do have 2 windowses on the same screen, one original 1920x2160, and another one 1920x1080, and this second one is not overwrite first one, but instead shows ups in other window, which i can see only if i scrolldown workbench screen.

Like, the second window draws not at 0,0 of the screen, but on on the second part of 2160 size.


Question is : if we have 1920x2160 screen, how to open a window of 1920x1080 size on the same screen, but which will overwrite at top and be visibly first one.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Double heigh screen and normal window on
Just can't stay away
Just can't stay away


See User information
@kas1e

"WA_Top,0, WA_Left,0," doesn't "put" such window on top left fo screen?

Go to top
Re: Double heigh screen and normal window on
Home away from home
Home away from home


See User information
@Javier
Nope, it still shows ups not on top of previous window, but as another separate one.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Double heigh screen and normal window on
Just popping in
Just popping in


See User information
..What if you use screens instead of windows?

Memento audere semper!
Go to top
Re: Double heigh screen and normal window on
Just popping in
Just popping in


See User information
@kas1e

Perhaps WA_AutoAdjust is altering the location of your window? Here's what the autodocs have to say about it:

Quote:
WA_AutoAdjust - a Boolean attribute which says that it's OK
to move or even shrink the dimensions of this window
to fit it on the screen, within the dimension
limits specified by MinWidth and MinHeight.
Someday, this processing might be sensitive to the
currently visible portion of the screen the window
will be opening on, so don't draw too many conclusions
about the auto-adjust algorithms. Also see WA_AutoAdjustDClip
below.
(Normally, this attribute defaults to FALSE. However,
if you call OpenWindowTags() or OpenWindowTagList()
with a NULL NewWindow pointer, this attribute defaults
to TRUE).

Since you're not using a NewWindow, WA_AutoAdjust defaults to TRUE. It might be confused by the double-height screen, and ends up putting the window where it thinks it's visible. Try adding WA_AutoAdjust, FALSE, and see if that helps.

Go to top
Re: Double heigh screen and normal window on
Home away from home
Home away from home


See User information
@msteed
Thanks for point, i tried, but it's the same :( Only what i noticed, that when i comment out things like title and stuff, i can see on the first top 10 lines rendering happens, but other area just black, and remaining rendering happens outside of visibly area.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Double heigh screen and normal window on
Just popping in
Just popping in


See User information
@kas1e

Quote:
Thanks for point, i tried, but it's the same :(

Hmm, I was hoping that would help. Can you at least move the window to the proper location with MoveWindow() or ChangeWindowBox() after it's been opened?

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project