From 6bdca2c48da4a29e1ad00a51049877060bca79b8 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 6 Jan 2018 15:09:57 +0100 Subject: Release filters: Fix handling of PC98 resolution icon https://vndb.org/t9992.16 --- lib/VNDB/Handler/VNPage.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/VNDB') diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm index 0d22f256..12ba0ec9 100644 --- a/lib/VNDB/Handler/VNPage.pm +++ b/lib/VNDB/Handler/VNPage.pm @@ -870,6 +870,8 @@ sub _release_icons { my $resolution = $rel->{resolution}; if($resolution) { my $resolution_type = $resolution == 1 ? 'custom' : $self->{resolutions}[$resolution][1] eq 'widescreen' ? '16-9' : '4-3'; + # Ugly workaround: PC-98 has non-square pixels, thus not widescreen + $resolution_type = '4-3' if $resolution_type eq '16-9' && grep $_ eq 'p98', @{$rel->{platforms}}; _release_icon "res$resolution_type", $self->{resolutions}[$resolution][0], "resolution_$resolution_type"; } -- cgit v1.2.3