X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTDesktop.java;h=fd56a7fb55abbe8d3d71b0c5e6f6310aa2dd04e3;hb=2bb26984bfcf482db4e4fc5fd2faea86004fc979;hp=1167e0cf004d0579538e11561f056a42711244c8;hpb=43ad7b6c509c45c8f261e77ea059c10fed8c9f1c;p=fanfix.git diff --git a/src/jexer/TDesktop.java b/src/jexer/TDesktop.java index 1167e0c..fd56a7f 100644 --- a/src/jexer/TDesktop.java +++ b/src/jexer/TDesktop.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -51,19 +51,26 @@ import jexer.event.TMouseEvent; */ public class TDesktop extends TWindow { + // ------------------------------------------------------------------------ + // Constructors ----------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Public constructor. * * @param parent parent application */ public TDesktop(final TApplication parent) { - super(parent, "", 0, 0, parent.getScreen().getWidth(), - parent.getScreen().getHeight() - 1); + parent.getDesktopBottom() - parent.getDesktopTop()); setActive(false); } + // ------------------------------------------------------------------------ + // TWindow ---------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * The default TDesktop draws a hatch character across everything. */