summaryrefslogtreecommitdiff
path: root/lib/Loadbars/Main.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Loadbars/Main.pm')
-rw-r--r--lib/Loadbars/Main.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Loadbars/Main.pm b/lib/Loadbars/Main.pm
index a603434..2f8e200 100644
--- a/lib/Loadbars/Main.pm
+++ b/lib/Loadbars/Main.pm
@@ -466,6 +466,14 @@ sub loop ($@) {
# While there are events to poll, poll them all!
while ( SDL::Events::poll_event($event) ) {
+ # Videoresize
+ if ($event->type() == 16) {
+ $newsize{width} = $event->resize_w;
+ $newsize{height} = $event->resize_h;
+ $resize_window = 1;
+ }
+
+ # Not a key
next if $event->type() != 2;
my $key_sym = $event->key_sym();