fix type error problems and missing return value during window resizing
fix type error problems and missing return value during window resizing

theblacklion/pyglet,oktayacikalin/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,theblacklion/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,oktayacikalin/pyglet