about summary refs log tree commit diff
path: root/src/game/editor/editor.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-01-08 01:47:53 +0100
committeroy <Tom_Adams@web.de>2012-01-08 01:47:53 +0100
commitbe37147342ff9032f0557d732abfc6cfd2c77efe (patch)
tree44b644a6ab37ea2dba8243056357a00fc5a03c43 /src/game/editor/editor.cpp
parent58f57795081e677e1450844bad1043b72c7c0bea (diff)
downloadzcatch-be37147342ff9032f0557d732abfc6cfd2c77efe.tar.gz
zcatch-be37147342ff9032f0557d732abfc6cfd2c77efe.zip
fixed border rendering in the editor's image preview. Closes #908
Diffstat (limited to 'src/game/editor/editor.cpp')
-rw-r--r--src/game/editor/editor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp
index c19fc86f..6b0a401c 100644
--- a/src/game/editor/editor.cpp
+++ b/src/game/editor/editor.cpp
@@ -2679,11 +2679,12 @@ void CEditor::RenderImages(CUIRect ToolBox, CUIRect ToolBar, CUIRect View)
 				r.h *= m_Map.m_lImages[i]->m_Height/Max;
 				Graphics()->TextureSet(m_Map.m_lImages[i]->m_TexID);
 				Graphics()->BlendNormal();
+				Graphics()->WrapClamp();
 				Graphics()->QuadsBegin();
 				IGraphics::CQuadItem QuadItem(r.x, r.y, r.w, r.h);
 				Graphics()->QuadsDrawTL(&QuadItem, 1);
 				Graphics()->QuadsEnd();
-
+				Graphics()->WrapNormal();
 			}
 		}