Commit a06516c0bd184088bf6e12bed5c66afa0370f458
1 parent
1065f4f2
Exists in
master
and in
68 other branches
ENH: Verify OS plataform, case 32 bit OS reduce image
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
invesalius/constants.py
| ... | ... | @@ -18,6 +18,8 @@ |
| 18 | 18 | #-------------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | 20 | import os.path |
| 21 | +import platform | |
| 22 | +import sys | |
| 21 | 23 | import wx |
| 22 | 24 | |
| 23 | 25 | from project import Project |
| ... | ... | @@ -225,7 +227,10 @@ WINDOW_LEVEL = {"Abdomen":(350,50), |
| 225 | 227 | "Vasculature - Hard":(240,80), |
| 226 | 228 | "Vasculature - Soft":(650,160)} |
| 227 | 229 | |
| 228 | -REDUCE_IMAGEDATA_QUALITY = 0 | |
| 230 | +if (platform.architecture()[0] == '32bit'): | |
| 231 | + REDUCE_IMAGEDATA_QUALITY = 1 | |
| 232 | +else: | |
| 233 | + REDUCE_IMAGEDATA_QUALITY = 0 | |
| 229 | 234 | |
| 230 | 235 | |
| 231 | 236 | ICON_DIR = os.path.abspath(os.path.join('..', 'icons')) | ... | ... |