X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FHiDPISetting.java;h=2bce6738ca5f94b59547ed36db1c12bd5972f21c;hb=83a2bf2f200ffb47f616af028d5ff6a403b9ee4a;hp=6219179ef6c06f3676bcf42a362cd9ebaf01fd1b;hpb=9d2408483e451285fd555c3cd6e0273977acbaa7;p=jalview.git diff --git a/src/jalview/bin/HiDPISetting.java b/src/jalview/bin/HiDPISetting.java index 6219179..2bce673 100644 --- a/src/jalview/bin/HiDPISetting.java +++ b/src/jalview/bin/HiDPISetting.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.bin; import java.util.Locale; @@ -169,10 +189,12 @@ public class HiDPISetting int dimensionScale = 1 + (mindimension / bigScreenThreshold); // reject outrageous values -- dpiScale in particular could be mistaken - if (dpiScale > MAX_SCALE) { + if (dpiScale > MAX_SCALE) + { dpiScale = 1; } - if (dimensionScale > MAX_SCALE) { + if (dimensionScale > MAX_SCALE) + { dimensionScale = 1; }