15 lines
697 B
Plaintext
15 lines
697 B
Plaintext
$OpenBSD: patch-taxipilot_message_cpp,v 1.1 2017/10/07 10:24:46 espie Exp $
|
|
|
|
Index: taxipilot/message.cpp
|
|
--- taxipilot/message.cpp.orig
|
|
+++ taxipilot/message.cpp
|
|
@@ -70,7 +70,7 @@ void Message::display_message (QString & message, QStr
|
|
do { // get next font-size that can be displayed reasonably
|
|
message_font.setPointSize(MESSAGE_FONT_SIZE - i);
|
|
i += 1;
|
|
- } while ((i < (MESSAGE_FONT_SIZE - 6)) && (!QFontInfo::QFontInfo(message_font).exactMatch()));
|
|
+ } while ((i < (MESSAGE_FONT_SIZE - 6)) && (!QFontInfo(message_font).exactMatch()));
|
|
|
|
message_sprite->setFont(message_font);
|
|
bound = message_sprite->boundingRect(); // and check, whether message fits with this font-size.
|