diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 18:12:44 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 18:12:44 +0000 |
commit | 64ee4a54f4730cdf777d75694ab48280f543ac88 (patch) | |
tree | a353aa76807bd451c518f70b95c5880f807898cf /Stars45/VidDlg.cpp | |
parent | 4e117fe61651631c7b7427ed584ef3b1f9a7df69 (diff) | |
download | starshatter-64ee4a54f4730cdf777d75694ab48280f543ac88.zip starshatter-64ee4a54f4730cdf777d75694ab48280f543ac88.tar.gz starshatter-64ee4a54f4730cdf777d75694ab48280f543ac88.tar.bz2 |
More scoping fixes
Diffstat (limited to 'Stars45/VidDlg.cpp')
-rw-r--r-- | Stars45/VidDlg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/VidDlg.cpp b/Stars45/VidDlg.cpp index 329a17b..4dea6b7 100644 --- a/Stars45/VidDlg.cpp +++ b/Stars45/VidDlg.cpp @@ -144,7 +144,7 @@ VidDlg::Show() int n = stars->MaxTexSize();
for (int i = 0; i < 7; i++) {
- if (n <= pow(2, i+6)) {
+ if (n <= pow(2.0f, i+6)) {
selected_tex_size = i;
break;
}
@@ -340,7 +340,7 @@ VidDlg::Apply() d = 32;
if (selected_tex_size)
- t = (int) pow(2, selected_tex_size + 6);
+ t = (int) pow(2.0f, selected_tex_size + 6);
bool video_change = false;
@@ -393,7 +393,7 @@ VidDlg::Apply() fprintf(f, "height: %4d\n", h);
fprintf(f, "depth: %4d\n", d);
fprintf(f, "\n");
- fprintf(f, "max_tex: %d\n", (int) pow(2, 6 + selected_tex_size));
+ fprintf(f, "max_tex: %d\n", (int) pow(2.0f, 6 + selected_tex_size));
fprintf(f, "primary3D: %s\n", (a>0)?"true":"false");
fprintf(f, "gamma: %4d\n", g);
fprintf(f, "\n");
|