fix warnings

This commit is contained in:
Vadim Lopatin 2016-09-08 18:58:48 +03:00
parent 857ddc762c
commit a71cc0368c
3 changed files with 4 additions and 4 deletions

View File

@ -532,7 +532,7 @@ static if (BACKEND_CONSOLE) {
TextColor,
Padding,
NinePatch,
};
}
Mode mode = Mode.Text;
uint[] bg;
uint[] col;

View File

@ -260,7 +260,7 @@ class ConsoleDrawBuf : DrawBuf {
return dr + dg + db;
}
}
static immutable RGB CONSOLE_COLORS_RGB[16] = [
static immutable RGB[16] CONSOLE_COLORS_RGB = [
RGB(0,0,0),
RGB(0,0,128),
RGB(0,128,0),

View File

@ -451,7 +451,7 @@ class Console {
} else {
import core.stdc.stdio;
import core.stdc.string;
char buf[50];
char[50] buf;
sprintf(buf.ptr, "\x1b[%d;%dH", y + 1, x + 1);
rawWrite(cast(string)(buf[0 .. strlen(buf.ptr)]));
}
@ -528,7 +528,7 @@ class Console {
return;
import core.stdc.stdio;
import core.stdc.string;
char buf[50];
char[50] buf;
if (textCol != lastTextColor && bgCol != lastBackgroundColor)
sprintf(buf.ptr, "\x1b[%d;%dm", textCol, bgCol);
else if (textCol != lastTextColor && bgCol == lastBackgroundColor)