changeset 19906:f72c694ee566

Sort events by ReadOrder (if both layer and start time are equal).
author eugeni
date Tue, 19 Sep 2006 18:23:36 +0000
parents 5a24682d9dd5
children 60ef51a1a356
files libass/ass_render.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Tue Sep 19 18:22:44 2006 +0000
+++ b/libass/ass_render.c	Tue Sep 19 18:23:36 2006 +0000
@@ -1914,6 +1914,10 @@
 		return -1;
 	if (e1->Start > e2->Start)
 		return 1;
+	if (e1->ReadOrder < e2->ReadOrder)
+		return -1;
+	if (e1->ReadOrder > e2->ReadOrder)
+		return 1;
 	return 0;
 }