Mercurial > fife-parpg
diff engine/core/video/opengl/glimage.cpp @ 603:739d8a43d771
* Fixed a bug in glimage.cpp. Now scale_x and scale_y is used.
* Fixed a bug in sdlimage.cpp. Removed a SDL_SetAlpha() call, which had triggered a segfault.
* Added Zoom support to SDL.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 08 Sep 2010 13:47:16 +0000 |
parents | 47b49b9b0c0a |
children | 853d25234671 |
line wrap: on
line diff
--- a/engine/core/video/opengl/glimage.cpp Mon Sep 06 16:43:24 2010 +0000 +++ b/engine/core/video/opengl/glimage.cpp Wed Sep 08 13:47:16 2010 +0000 @@ -109,10 +109,10 @@ for (unsigned int i = 0; i < m_cols; ++i) { if (i == m_cols-1) { col_fill_ratio = m_last_col_fill_ratio; - target.w = static_cast<int>(round(scale_y*m_last_col_width*m_last_col_fill_ratio)); + target.w = static_cast<int>(round(scale_x*m_last_col_width*m_last_col_fill_ratio)); } else { col_fill_ratio = 1.0; - target.w = static_cast<int>(round(scale_y*m_chunk_size)); + target.w = static_cast<int>(round(scale_x*m_chunk_size)); } if (i > 0) { target.x = prev.x + prev.w;