diff options
author | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-30 20:17:55 +0000 |
---|---|---|
committer | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-30 20:17:55 +0000 |
commit | 9fbf9932e874845247f285e5c1c4f6c15b4cea58 (patch) | |
tree | 47939b089708ffc221cc819177f3632e5cdaa543 /src/common/showmsg.c | |
parent | c6e18085940a91c2656bc6bfeb795693b1fbb3c4 (diff) | |
download | hercules-9fbf9932e874845247f285e5c1c4f6c15b4cea58.tar.gz hercules-9fbf9932e874845247f285e5c1c4f6c15b4cea58.tar.bz2 hercules-9fbf9932e874845247f285e5c1c4f6c15b4cea58.tar.xz hercules-9fbf9932e874845247f285e5c1c4f6c15b4cea58.zip |
- Removed more trailing tabs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15527 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/showmsg.c')
-rw-r--r-- | src/common/showmsg.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 102557df7..7a6f632e7 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -197,7 +197,7 @@ Escape sequences for Select Character Set int VFPRINTF(HANDLE handle, const char *fmt, va_list argptr) { ///////////////////////////////////////////////////////////////// - /* XXX Two streams are being used. Disabled to avoid inconsistency [flaviojs] + /* XXX Two streams are being used. Disabled to avoid inconsistency [flaviojs] static COORD saveposition = {0,0}; */ @@ -369,7 +369,7 @@ int VFPRINTF(HANDLE handle, const char *fmt, va_list argptr) { // number of chars from cursor to end origin = info.dwCursorPosition; cnt = info.dwSize.X * (info.dwSize.Y - info.dwCursorPosition.Y) - info.dwCursorPosition.X; - } + } FillConsoleOutputAttribute(handle, info.wAttributes, cnt, origin, &tmp); FillConsoleOutputCharacter(handle, ' ', cnt, origin, &tmp); } @@ -384,11 +384,11 @@ int VFPRINTF(HANDLE handle, const char *fmt, va_list argptr) SHORT cnt; DWORD tmp; if(num==1) - { + { cnt = info.dwCursorPosition.X + 1; } else if(num==2) - { + { cnt = info.dwSize.X; } else// 0 and default @@ -512,7 +512,7 @@ int VFPRINTF(HANDLE handle, const char *fmt, va_list argptr) } int FPRINTF(HANDLE handle, const char *fmt, ...) -{ +{ int ret; va_list argptr; va_start(argptr, fmt); @@ -569,7 +569,7 @@ int VFPRINTF(FILE *file, const char *fmt, va_list argptr) while(1) { if( ISDIGIT(*q) ) - { + { ++q; // and next character continue; @@ -648,7 +648,7 @@ int VFPRINTF(FILE *file, const char *fmt, va_list argptr) return 0; } int FPRINTF(FILE *file, const char *fmt, ...) -{ +{ int ret; va_list argptr; va_start(argptr, fmt); |