Silence a couple of warnings with -DCAP_TEXTURE=0 (the default on MinGW).

This commit is contained in:
Arthur O'Dwyer 2018-06-27 00:47:46 -07:00
parent a346e05bbc
commit 817f690ae3
1 changed files with 3 additions and 0 deletions

View File

@ -928,6 +928,7 @@ namespace mapeditor {
void drawHandleKey(int sym, int uni);
#if CAP_TEXTURE
static ld brush_sizes[10] = {
0.001, 0.002, 0.005, 0.0075, 0.01, 0.015, 0.02, 0.05, 0.075, 0.1};
@ -946,6 +947,7 @@ namespace mapeditor {
0x404040FF,
0x804000FF
};
#endif
void showDrawEditor() {
cmode = sm::DRAW;
@ -1528,6 +1530,7 @@ namespace mapeditor {
dialog::editNumber(texture::penwidth, 0, 0.1, 0.005, 0.02, XLAT("brush size"), XLAT("brush size"));
}
#else
(void)clickused;
if(0);
#endif