projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix all cases of not-optimal UV-coordinates
[supertux.git]
/
src
/
video
/
surface.cpp
diff --git
a/src/video/surface.cpp
b/src/video/surface.cpp
index
55e1783
..
c7b1e1b
100644
(file)
--- 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();
{
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();
uv_right = texture->get_uv_right();
uv_bottom = texture->get_uv_bottom();