Commit graph

17 commits

Author SHA1 Message Date
vraskulin
0557b5e89c list.size > 0 changed to !list.isEmpty
We care about if it's empty or not, not about it's size
2017-02-06 14:32:51 +03:00
vraskulin
076840df53 Big refactoring
I used Intellij IDEA to automatically refactor code to achive 3 goals.
1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog).
2) make effectively final  variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible.
3)  Get rid of unused imports (most of the changes) in whole project classes.
2017-01-09 19:16:53 +03:00
LevelX2
8f317305fa Some minor changes. 2016-10-24 17:55:28 +02:00
draxdyn
e3d84ca212 Cache resized and rotated images
RotatedResizedImageCache and MultiRotatedResizedImageCache contain the caching
machinery.

A cache of rotated and resized images is added to ImageCache, and is used by
the resizing functions there.

All the resizing and rotation functions in ImageHelper are redirected to the
ones in ImageCache.

This is slightly inefficient because it will cache some calls that are never
repeated, but it prevents developers from mistakenly using uncached functions
when calls are repeated, seriously impacting performance.

Also resizing functions that only take a width or an height have been removed,
and their calls fixed to provide the other dimension. It's still possible to
specify -1 as width or height to ignore constraints in that dimension, though.

Greatly speeds up UI performance.
2016-06-23 16:21:34 +02:00
LevelX2
7ef0a0a7f0 Some more changes to GUI to better support high screen resolutions. 2016-02-13 02:30:05 +01:00
betasteward
9e28fa9b0c fix to allow Launcher to start client - also slightly improves performance 2014-10-14 13:58:52 -04:00
LevelX2
88aca77695 * Split cards - The images of split cards are now rotated in the enlarged image view (moueswheel up/down). 2014-03-13 00:20:37 +01:00
LevelX2
562e586c26 Added missing cards for Garruk vs. Liliana duel deck. 2014-02-26 12:39:02 +01:00
North
239a4fb100 [refactoring][minor] Replaced all tabs with four spaces. 2012-06-19 23:50:20 +03:00
North
e8426e6e71 Removed a couple of duplicate files. 2011-09-02 00:18:04 +03:00
North
1f72804968 Load croped image from Wizard images. fixes display issue
When resizing image to fit the BigCard panel, scale it to fit width.
The result is better.
2011-06-14 22:13:22 +03:00
BetaSteward
86f708b17a detect client version + client changes for AI skill level 2011-04-28 22:52:52 -04:00
magenoxx
08a4aa4aea New game panel: new player info, centered hand, displaying poison counters, layout fix (Issue 25 fix), avatars, etc. 2011-01-23 14:41:57 +03:00
magenoxx
ad50277430 ... 2010-11-05 15:53:24 +00:00
magenoxx
9eb8b0e487 Interfaces and abstract classes for Mage.Card.Plugin. Replaced creating permanent by calling plugin manager that returns old implementation but new is also possible since now. 2010-11-03 06:59:55 +00:00
magenoxx
4d6c70e390 Not sure this is correct handling, but spent 2h because of missing exception in the logs when jar is missing or path is not correct. 2010-10-30 17:37:01 +00:00
magenoxx
f775f7c511 Moved /src and /resources to maven stardard /src/main/java and /src/main/resources. Hope it's ok, if not I'll revert. 2010-10-22 12:40:50 +00:00
Renamed from Mage.Client/src/mage/client/util/ImageHelper.java (Browse further)