diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-12-06 19:35:40 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-12-06 19:35:40 +0200 |
commit | 543fc6702f4ae9ad4dbc8289b8c3ed7d8b332cb1 (patch) | |
tree | 6abe8c44f1258259f8fe8a8e58fdd15c463e555b /src | |
parent | 5080b634354971413d56c3dece9d0d94c46f9ea0 (diff) | |
download | minetest-543fc6702f4ae9ad4dbc8289b8c3ed7d8b332cb1.tar.gz minetest-543fc6702f4ae9ad4dbc8289b8c3ed7d8b332cb1.tar.bz2 minetest-543fc6702f4ae9ad4dbc8289b8c3ed7d8b332cb1.zip |
Set proper field background colors in Irrlicht 1.8
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 73757cbec..ede9f63b0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1349,7 +1349,13 @@ int main(int argc, char *argv[]) skin->setColor(gui::EGDC_3D_SHADOW, video::SColor(255,0,0,0)); skin->setColor(gui::EGDC_HIGH_LIGHT, video::SColor(255,70,100,50)); skin->setColor(gui::EGDC_HIGH_LIGHT_TEXT, video::SColor(255,255,255,255)); - + +#if (IRRLICHT_VERSION_MAJOR >= 1 && IRRLICHT_VERSION_MINOR >= 8) || IRRLICHT_VERSION_MAJOR >= 2 + // Irrlicht 1.8 input colours + skin->setColor(gui::EGDC_EDITABLE, video::SColor(255,128,128,128)); + skin->setColor(gui::EGDC_FOCUSED_EDITABLE, video::SColor(255,96,134,49)); +#endif + /* GUI stuff */ |