Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-10-29 01:27:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-10-29 01:27:07 +0300
commit7718b3d642566921c47e23359ce17d33b570f617 (patch)
treef9c427c610b24a1adba86b05398c8f484f0d65e5 /intern
parent47da2813d81b948e9e175e7c01ebaa794db395e1 (diff)
render stamp drawing is now done everywhere - (not just when saving
images) separated stamp metadata and stamp draw functions.
Diffstat (limited to 'intern')
-rw-r--r--intern/bmfont/intern/BMF_BitmapFont.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/bmfont/intern/BMF_BitmapFont.cpp b/intern/bmfont/intern/BMF_BitmapFont.cpp
index c47b2b07195..2ea14b4b203 100644
--- a/intern/bmfont/intern/BMF_BitmapFont.cpp
+++ b/intern/bmfont/intern/BMF_BitmapFont.cpp
@@ -268,7 +268,7 @@ void BMF_BitmapFont::DrawStringBuf(char *str, int posx, int posy, float *col, un
for (y = 0; y < cd.height; y++) {
unsigned char* chrRow = &m_fontData->bitmap_data[cd.data_offset + ((cd.width+7)/8)*y];
for (x = cd.xorig; x < cd.width; x++) {
- pixel = buf + 4 * (((posy + y) * w) + (posx + x));
+ pixel = buf + 4 * (((posy + y - cd.yorig) * w) + (posx + x));
if ((pixel < max) && (pixel > buf)) {
int byteIdx = x/8;
int bitIdx = 7 - (x%8);