From 723647dd81e7e53b5404c95322a28c54c1d635df Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 22 Mar 2019 09:33:26 +0100 Subject: [PATCH] code cleanup --- .../fanfix/reader/ui/GuiReaderCoverImager.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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; -- 2.27.0