all repos — fluxbox @ 4b412d94b1c0abef0736ecda19b136fb25ca1a9b

custom fork of the fluxbox windowmanager

minor stuff
fluxgen fluxgen
commit

4b412d94b1c0abef0736ecda19b136fb25ca1a9b

parent

d9483d04fbcc7da8ca17f65ae87a138433b27ad9

1 files changed, 11 insertions(+), 2 deletions(-)

jump to
M src/XmbFontImp.ccsrc/XmbFontImp.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: XmbFontImp.cc,v 1.1 2002/10/13 22:22:14 fluxgen Exp $ +// $Id: XmbFontImp.cc,v 1.2 2002/10/16 23:31:10 fluxgen Exp $ #include "XmbFontImp.hh"

@@ -35,6 +35,8 @@ #include <locale.h>

#endif // HAVE_SETLOCALE #include <cstdarg> +#include <iostream> +using namespace std; namespace {

@@ -157,6 +159,13 @@

}; XmbFontImp::XmbFontImp(const char *filename, bool utf8):m_fontset(0), m_utf8mode(utf8) { +#ifdef DEBUG +#ifdef X_HAVE_UTF8_STRING + cerr<<"Using utf8 = "<<utf8<<endl; +#else // X_HAVE_UTF8_STRING + cerr<<"Using uft8 = false"<<endl; +#endif //X_HAVE_UTF8_STRING +#endif // DEBUG if (filename != 0) load(filename); }

@@ -199,7 +208,7 @@ text, len);

} } -unsigned int XmbFontImp::textWidth(const char *text, unsigned int len) const { +unsigned int XmbFontImp::textWidth(const char * const text, unsigned int len) const { if (m_fontset == 0) return 0; XRectangle ink, logical;