blackberry / SDL

Simple DirectMedia Layer is an open-source, cross-platform multimedia library designed to provide a low level API.
GNU Lesser General Public License v2.1
86 stars 46 forks source link

DPAD fix, Stretched Vs Native Resolution compile option + dynamic calculation, project compile properties update. #9

Closed a7omic closed 12 years ago

a7omic commented 12 years ago

DPAD Fix

Stretched Vs Native Resolution + Dynamic Calculation

Project compile properties update

jnicholl commented 12 years ago

On the whole, looks pretty good. Can I just confirm what the default value of STRETCHED is?

a7omic commented 12 years ago

In my project I do not have STRETCHED defined in my symbols so it will not execute this code, therefor it runs with the native resolution. If you want it to stretch by default then you would need to add the symbol. Would you suggest a different/better way to do this?

jnicholl commented 12 years ago

I guess that's okay. I can't think of a better way to do it. It's a bit unfortunate that this will change the default behavior of some other apps, but there's no convenient way to pass the information down. Perhaps something could be done around the SDL_FULLSCREEN flag being requested at runtime, rather than having to compile SDL differently? Maybe that should be a TODO for later.

Approved, I'll just wait for any more comments before merging.

a7omic commented 12 years ago

I agree, I just didn't want to modify that part in case you had other plans. Would you like me to switch it around to be nativeaspect or something like that so that the current functionality is the default, or you could add STRETCHED to the default project setup.

jnicholl commented 12 years ago

I think it'll be fine. I'll merge it in. Thanks!