]> git.decadent.org.uk Git - videolink.git/commitdiff
Added vertical padding of buttons to even y coordinates since dvdauthor claims odd...
authorBen Hutchings <ben@decadent.org.uk>
Sat, 7 Jul 2007 18:26:28 +0000 (18:26 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 23:58:14 +0000 (23:58 +0000)
generate_dvd.cpp

index 45e9ca6d8a3f2d35583c88b763f26785baf3a6d1..1d43a9aba9e9527c1dce6ba1a0a23fd8238b4850 100644 (file)
@@ -211,11 +211,15 @@ void dvd_generator::generate_menu_vob(unsigned index,
                }
            }
        }
+       // 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 << "'"