|
Re: SDL2 |
Posted on: 9/25 18:39
#781 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@Capehill
What i was fear of , yep.. So , the only solution to do it as done in SDL1 version , as i understand , with that "Screen = SDL_SetVideoMode( 0, 0, 0, SDL_Flags );" , they just recreate window, without destorying context attached to it (or something of that sort ?). Is there anyway it can be done with SDL2 ? |
|
|
Re: SDL2 |
Posted on: 10/13 12:57
#782 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 803
|
@kas1e
Please try resize-win branch. |
|
|
Re: SDL2 |
Posted on: 10/13 16:50
#783 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@Capehill
Yeah ! It works ! Through found little issue. There is test code i use (just press "space" to switch bettwen resizable/non-resizable window as much as you want till cube rotated).
#include <SDL2/SDL.h>
Now issue is : if you run that example, then drag the window somewhere on workbench and then press "space" , then, together with adding resizable gadget window jump to the middle of the screen. And that happens after eacht "2 presses" if you move window after each other to some new place : it then place to the place where was previous window. And that "non remember of window position on screen" happens only after resizable gadget added. When you press "space" from the pure window (while non resizable gadget added), then it stays on the same position. |
|
|
Re: SDL2 |
Posted on: 10/18 18:00
#784 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 803
|
@kas1e
I found a bug, IDCMP_CHANGEWINDOW event was not activated when window wasn't resizable. |
|
|
Re: SDL2 |
Posted on: 10/18 20:05
#785 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@Capehill
Yeah, all fine now :) and that pretty nice feature should to say :) We can see of course fast close/opening of window but then that probabaly the only way we can do it on os4, and functionality are how it should be, so all good, thanks a bunch Btw, have a question : should the window when we add/remove resize gadget jump inside of workbench borders ? I.e. i move for example window out of workbench for half of window, then press "space" in my test case (to enable/disable resize gadget), and then window jump inside of workbench borders. That probabaly expected to be like this ? |
|
|
Re: SDL2 |
Posted on: 10/19 10:26
#786 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 803
|
@kas1e
It depends on the WA_AutoAdjust tag, which is implicitly TRUE when window is opened with OpenWindowTags(). |
|