Added dynamic window and buffer size calculation based on the hardware and the sizes provided by the app.
Added dynamic window and buffer size calculation based on the hardware and the sizes provided by the app.

blackberry/SDL,blackberry/SDL,blackberry/SDL,blackberry/SDL,xkfz007/SDL,xkfz007/SDL,idispatch/SDL,xkfz007/SDL,xkfz007/SDL,xkfz007/SDL,xkfz007/SDL,idispatch/SDL,idispatch/SDL,idispatch/SDL,blackberry/SDL