X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvideo%2Fsdl_surface_data.hpp;h=e4650da3765ab584948d56baff19304efb7bb5dc;hb=c13404a6b6a97ad0d5e1c9f905d7a7e37b797c13;hp=1e46e683ae619a16268c143da31abd7d403fe684;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/video/sdl_surface_data.hpp b/src/video/sdl_surface_data.hpp index 1e46e683a..e4650da37 100644 --- a/src/video/sdl_surface_data.hpp +++ b/src/video/sdl_surface_data.hpp @@ -38,9 +38,12 @@ namespace SDL SurfaceData(const Surface &surface) : surface(surface) { - int numerator, denominator; - float xfactor = (float) config->screenwidth / SCREEN_WIDTH; - float yfactor = (float) config->screenheight / SCREEN_HEIGHT; + int numerator = 1; + int denominator = 1; + //float xfactor = 1.0f; // FIXME: (float) config->screenwidth / SCREEN_WIDTH; + //float yfactor = 1.0f; // FIXME: (float) config->screenheight / SCREEN_HEIGHT; + + /* FIXME: if(xfactor < yfactor) { numerator = config->screenwidth; @@ -51,6 +54,7 @@ namespace SDL numerator = config->screenheight; denominator = SCREEN_HEIGHT; } + */ src_rects[NO_EFFECT].x = surface.get_x() * numerator / denominator; src_rects[NO_EFFECT].y = surface.get_y() * numerator / denominator;