Skip to content

Commit

Permalink
FIX: Fix "implicit conversion from float" on overview page background…
Browse files Browse the repository at this point in the history
… image preview

fixes #355
  • Loading branch information
LarsMichelsen committed Oct 2, 2023
1 parent d45955d commit c7e2b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
@@ -1,5 +1,6 @@
1.9.37
Frontend:
* FIX: Fix "implicit conversion from float" on overview page background image preview
* FIX: Sound events, which are triggered e.g. in case an object turns CRITICAL, now work in modern
browsers (Edge 12+, Firefox 20+, Internet Explorer 9+, Opera 15+, Safari 4+, Chrome)

Expand Down
2 changes: 1 addition & 1 deletion share/server/core/classes/CoreModOverview.php
Expand Up @@ -371,7 +371,7 @@ private function createThumbnail($imgPath, $thumbPath) {
imagefill($thumb, 0, 0, imagecolorallocate($thumb, 255, 255, 254));
imagecolortransparent($thumb, imagecolorallocate($thumb, 255, 255, 254));

imagecopyresampled($thumb, $image, $thumbX, $thumbY, 0, 0, $thumbWidth, $thumbHeight, $bgWidth, $bgHeight);
imagecopyresampled($thumb, $image, (int)$thumbX, (int)$thumbY, 0, 0, (int)$thumbWidth, (int)$thumbHeight, (int)$bgWidth, (int)$bgHeight);

switch($imgSize[2]) {
case 1:
Expand Down

0 comments on commit c7e2b9e

Please sign in to comment.