From: Niki Roo Date: Fri, 22 Mar 2019 08:33:26 +0000 (+0100) Subject: code cleanup X-Git-Tag: fanfix-2.0.0~17 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=723647dd81e7e53b5404c95322a28c54c1d635df;p=fanfix.git code cleanup --- diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderCoverImager.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderCoverImager.java index 0f6d0b6..0bbf82e 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReaderCoverImager.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderCoverImager.java @@ -120,11 +120,25 @@ class GuiReaderCoverImager { * * @param lib * the library the meta comes from - * @param info + * @param meta * the {@link MetaData} * * @return the icon */ + static public ImageIcon generateCoverIcon(BasicLibrary lib, MetaData meta) { + return generateCoverIcon(lib, GuiReaderBookInfo.fromMeta(meta)); + } + + /** + * Generate a cover icon based upon the given {@link GuiReaderBookInfo}. + * + * @param lib + * the library the meta comes from + * @param info + * the {@link GuiReaderBookInfo} + * + * @return the icon + */ static public ImageIcon generateCoverIcon(BasicLibrary lib, GuiReaderBookInfo info) { BufferedImage resizedImage = null;