mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 14:41:23 +02:00
- fixed a few issues found by JeffM (debian games team irc channel) while testing on Windows 7 64 bit
This commit is contained in:
@@ -577,7 +577,8 @@ void TextRenderer3DGl::internalRender(const string &text, float x, float y, boo
|
||||
vector<string> parts;
|
||||
char szBuf[8096]="";
|
||||
|
||||
for (int i=0; renderText[i] != '\0'; ++i) {
|
||||
//for (int i=0; renderText[i] != '\0'; ++i) {
|
||||
for(size_t i=0; i < renderText.size(); ++i) {
|
||||
szBuf[0] = '\0';
|
||||
snprintf(szBuf,8096,"%c",renderText[i]);
|
||||
|
||||
|
@@ -423,6 +423,8 @@ bool isdir(const char *path)
|
||||
}
|
||||
|
||||
bool fileExists(const string &path) {
|
||||
if (path.size() == 0) return false;
|
||||
|
||||
#ifdef WIN32
|
||||
wstring wstr = utf8_decode(path);
|
||||
FILE* file= _wfopen(wstr.c_str(), L"rb");
|
||||
|
Reference in New Issue
Block a user