Gui rendering cleanup

This commit is contained in:
mezz committed 2017-01-24 20:53:27 -08:00
1 parent 17f036522e
commit 31a305ffc2
173 files changed
+1317 -1349

No files matched your search

@@ -21,7 +21,7 @@ public class AnalystPageKaryogram extends ControlAnalystPage {
final ISpeciesRoot root = AlleleManager.alleleRegistry.getSpeciesRoot(ind.getClass());
final BreedingSystem system = Binnie.GENETICS.getSystem(root);
final int maxBiomePerLine = (int) ((this.w() + 4.0f - 16.0f) / 22.0f);
float karygramX = (this.w() - (Math.min(maxBiomePerLine, system.getActiveKaryotype().size()) * 18 - 4)) / 2.0f;
int karygramX = (this.w() - (Math.min(maxBiomePerLine, system.getActiveKaryotype().size()) * 18 - 4)) / 2;
int dx = 0;
int dy = 0;
int rem = system.getActiveKaryotype().size();