aboutsummaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-05 23:48:06 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-05 23:48:06 +0800
commitbda9ef9345786d48fd0d98b0855ce965e1028b2f (patch)
treecdcc7adc9f496c37cbcc75d8cccd2066d02c277b /extensions
parentc2b99f6321965b2c5b30a1b72b29119281c2d7e1 (diff)
downloadSMELT-bda9ef9345786d48fd0d98b0855ce965e1028b2f.tar.xz
Add support for batching vertices with custom indices.
Fix compiler warnings.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/smbmfont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/smbmfont.cpp b/extensions/smbmfont.cpp
index 97b7fdb..def8454 100644
--- a/extensions/smbmfont.cpp
+++ b/extensions/smbmfont.cpp
@@ -211,11 +211,11 @@ void smBMFontw::render(float x,float y,float z,int align,float *rw,const wchar_t
}
void smBMFontw::printf(float x,float y,float z,int align,float *rw,const wchar_t* format,...)
{
- wchar_t buf[1024];
+ wchar_t buf[1025];
va_list vl;
va_start(vl,format);
vswprintf(buf,sizeof(buf)-1,format,vl);
va_end(vl);
- buf[sizeof(buf)-1]='\0';
+ buf[1024]=L'\0';
render(x,y,z,align,rw,buf);
}