}
}
}
+ // Pad vertically to even y coordinates since dvdauthor claims
+ // odd values may result in incorrect display.
+ // XXX This may cause overlappping where it wasn't previously
+ // a problem.
spumux_file << " <button"
" x0='" << this_entry.area.left << "'"
- " y0='" << this_entry.area.top << "'"
+ " y0='" << (this_entry.area.top & ~1) << "'"
" x1='" << this_entry.area.right << "'"
- " y1='" << this_entry.area.bottom << "'"
+ " y1='" << ((this_entry.area.bottom + 1) & ~1) << "'"
" left='" << (i == 0 ? button_count : i) << "'"
" right='" << 1 + (i + 1) % button_count << "'"
" up='" << 1 + up_button << "'"
const unsigned menu_begin = titleset_num * dvdauthor_anonymous_menus_max;
const unsigned menu_end =
have_real_menus
- ? std::min((titleset_num + 1) * dvdauthor_anonymous_menus_max,
- menus_.size())
+ ? std::min<unsigned>(
+ (titleset_num + 1) * dvdauthor_anonymous_menus_max,
+ menus_.size())
: menu_begin + 1;
for (unsigned menu_index = menu_begin;