# HG changeset patch # User Santeri Piippo # Date 1369651747 -10800 # Node ID a3bab31c7e27cebb2c0b3336cb1ad9132751b602 # Parent 69a842af73f79ca6ab9641a47e536202416676fc Fixed: Coordinates weren't drawn properly on a bright background (was always drawn in bright colors..). Note that previous commits were left dangling in their own head, the string class changes broke too many things. diff -r 69a842af73f7 -r a3bab31c7e27 src/gldraw.cpp --- a/src/gldraw.cpp Sat May 25 02:15:25 2013 +0300 +++ b/src/gldraw.cpp Mon May 27 13:49:07 2013 +0300 @@ -490,7 +490,7 @@ if (drawOnly ()) return; - if (m_camera != Free) { + if (m_camera != Free && !picking ()) { // Paint the overlay image if we have one const overlayMeta& overlay = m_overlays[m_camera]; if (overlay.img != null) { @@ -506,13 +506,13 @@ m_hoverpos = coordconv2_3 (m_pos, true); // Paint the coordinates onto the screen. - str text; - text.format ("X: %s, Y: %s, Z: %s", ftoa (m_hoverpos[X]).chars (), + str text = fmt ("X: %s, Y: %s, Z: %s", ftoa (m_hoverpos[X]).chars (), ftoa (m_hoverpos[Y]).chars (), ftoa (m_hoverpos[Z]).chars ()); QFontMetrics metrics = QFontMetrics (font ()); QRect textSize = metrics.boundingRect (0, 0, m_width, m_height, Qt::AlignCenter, text); + paint.setPen (m_darkbg ? Qt::white : Qt::black); paint.drawText (m_width - textSize.width (), m_height - 16, textSize.width (), textSize.height (), Qt::AlignCenter, text);