Petri Hintukainen pushed to branch master at VideoLAN / libbluray
Commits:
b4de9ce6 by spotter at 2026-01-30T12:36:42+00:00
BD-J: Fix vertical text alignment in HDefaultTextLayoutManager
- - - - -
1 changed file:
- src/libbluray/bdj/java/org/havi/ui/HDefaultTextLayoutManager.java
Changes:
=====================================
src/libbluray/bdj/java/org/havi/ui/HDefaultTextLayoutManager.java
=====================================
@@ -114,17 +114,17 @@ public class HDefaultTextLayoutManager implements
HTextLayoutManager {
switch (v.getVerticalAlignment()) {
case HVisible.VALIGN_TOP:
- y = insets.top + ascent + descent + i * stringHeight;
+ y = insets.top + ascent + i * stringHeight;
break;
case HVisible.VALIGN_BOTTOM:
y = v.getHeight() - insets.bottom - textHeight +
- ascent + descent + i * stringHeight;
+ ascent + i * stringHeight;
break;
case HVisible.VALIGN_CENTER:
case HVisible.VALIGN_JUSTIFY:
y = insets.top +
(v.getHeight() - insets.top - insets.bottom - textHeight)
/ 2 +
- ascent + descent + i * stringHeight;
+ ascent + i * stringHeight;
break;
}
View it on GitLab:
https://code.videolan.org/videolan/libbluray/-/commit/b4de9ce6f5481f1bf56f0ecb5bfae9876057499c
--
View it on GitLab:
https://code.videolan.org/videolan/libbluray/-/commit/b4de9ce6f5481f1bf56f0ecb5bfae9876057499c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel