• R/O
  • HTTP
  • SSH
  • HTTPS

dialektos: Commit

dialektos


Commit MetaInfo

Revision0d28ee1055b9075748b3ae3233c8b8be1e435adc (tree)
Time2010-03-02 22:49:24
AuthorAiwota Programmer <aiwotaprog@tett...>
CommiterAiwota Programmer

Log Message

AMD64 issues.

Change Summary

Incremental Difference

--- a/src/text_element_char_size_cache.cxx
+++ b/src/text_element_char_size_cache.cxx
@@ -70,7 +70,7 @@ double CharSizeCache::get_char_width(
7070 double CharSizeCache::get_char_width(gunichar uch, const Pango::Item& item) {
7171 Pango::Analysis analysis = item.get_analysis();
7272 Glib::RefPtr<Pango::Font> font = analysis.get_font();
73- const int font_id = reinterpret_cast<int>(font->gobj());
73+ const int font_id = reinterpret_cast<long int>(font->gobj());
7474 return get_char_width(uch, item, get_map(font_id));
7575 }
7676
--- a/src/text_element_plain.cxx
+++ b/src/text_element_plain.cxx
@@ -82,7 +82,7 @@ void Plain::layout(text_view::LayoutSet& set) {
8282
8383 BOOST_FOREACH(const Pango::Item& item, items_) {
8484 Glib::RefPtr<Pango::Font> font = item.get_analysis().get_font();
85- const int font_id = reinterpret_cast<int>(font->gobj());
85+ const int font_id = reinterpret_cast<long int>(font->gobj());
8686 BOOST_FOREACH(const gunichar& uch, item.get_segment(str_)) {
8787 const double width = char_size_cache.get_char_width(uch, item, font_id);
8888 if (set.x + width > x_end_) {
Show on old repository browser