From d5630d72de370738ffff3717e525a8a3f61b021f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 25 Mar 2024 19:32:03 +0100 Subject: [PATCH] Fixed message texture size logic --- sbapp/ui/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbapp/ui/messages.py b/sbapp/ui/messages.py index 51cd727..e802366 100644 --- a/sbapp/ui/messages.py +++ b/sbapp/ui/messages.py @@ -411,7 +411,7 @@ class Messages(): def check_textures(w, val): try: - if w.texture_size[1] > 360 and w.texture_size[1] >= self.max_texture_size: + if w.texture_size[0] > 360 and w.texture_size[1] >= self.max_texture_size: w.text = "[i]The content of this message is too large to display in the message stream. You can copy the message content into another program by using the context menu of this message, and selecting [b]Copy[/b].[/i]" if w.owner.has_image: