X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvideo%2Fsurface.cpp;h=c7b1e1bbae98073a4a364cbbf2661673d36bd520;hb=6cd71a8644049d1951b5a9702a57ad02a7971c1e;hp=55e17831d315e444769244d8bb74b2f6f9b4a94a;hpb=b50836ea0d5c455c115fba76616ba544aad5ae5f;p=supertux.git diff --git a/src/video/surface.cpp b/src/video/surface.cpp index 55e17831d..c7b1e1bba 100644 --- a/src/video/surface.cpp +++ b/src/video/surface.cpp @@ -41,8 +41,8 @@ Surface::Surface(const std::string& file) { texture = texture_manager->get(file); texture->ref(); - uv_left = 0; - uv_top = 0; + uv_left = 0.5 / texture->get_width(); + uv_top = 0.5 / texture->get_height(); uv_right = texture->get_uv_right(); uv_bottom = texture->get_uv_bottom();