In SDL::Event I found this:
Window resize events resize_w, resize_h When SDL_RESIZABLE is passed as a flag to SDL_SetVideoMode the user is + allowed to resize the applications window. When the window is resized an SDL_VIDEORESIZE is reported, with the new window width and height values stored in the resize structure's resize_w and resize_h. When an + SDL_VIDEORESIZE is received the window should be resized to the new dimensions using SDL_SetVideoMode.
In your program it looks like you have everything except the last part where it says to use SDL_SetVideoMode.
I couldn't find any examples that use that but I did find an example included in SDL called examples/cookbook/1.pl that uses SDL::Video::set_video_mode(320, 320, 32, SDL_SWSURFACE );
The documentation for SDL::Video::set_video_mode() shows that function seems to be what you need:
SDL_RESIZABLE Create a resizable window. When the window is resized by the user a SDL_VIDEORESIZE event is generated and SDL::Video::set_video_mode can be called again with the new size.
There are more details there on how to call SDL::Video::set_video_mode().
Your application looks interesting. Let us know how it works out. Good luck!
Update:
After looking at your application again and looking at the contents of App.pm I notice the resize() function you use calls SDL::Video::set_video_mode() so it seems like you've done it correctly. My comments above were not very helpful it seems.
In reply to Re^3: SDL/SDLx issue with application resizing
by Lotus1
in thread SDL/SDLx issue with application resizing
by Garden Dwarf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |