summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNPage.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-01-06 15:09:57 +0100
committerYorhel <git@yorhel.nl>2018-01-06 15:09:57 +0100
commit6bdca2c48da4a29e1ad00a51049877060bca79b8 (patch)
treeddf230db0c71094bcc656878b69b36ccd0f57ea8 /lib/VNDB/Handler/VNPage.pm
parente3858af7c3057a12a36c47e3fd50009f4af81c3a (diff)
Release filters: Fix handling of PC98 resolution icon
https://vndb.org/t9992.16
Diffstat (limited to 'lib/VNDB/Handler/VNPage.pm')
-rw-r--r--lib/VNDB/Handler/VNPage.pm2
1 files changed, 2 insertions, 0 deletions
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";
}