projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Frontend] fix set PLP ID for DVB API VERSION 5.9 or later
[vuplus_dvbapp]
/
lib
/
gdi
/
erect.cpp
diff --git
a/lib/gdi/erect.cpp
b/lib/gdi/erect.cpp
index
a387879
..
c17c5cf
100644
(file)
--- a/
lib/gdi/erect.cpp
+++ b/
lib/gdi/erect.cpp
@@
-1,5
+1,5
@@
#include <lib/gdi/erect.h>
#include <lib/gdi/erect.h>
-#include <
iostream
>
+#include <
lib/base/eerror.h
>
/*****************************************************************************
eRect member functions
/*****************************************************************************
eRect member functions
@@
-202,3
+202,13
@@
bool operator!=( const eRect &r1, const eRect &r2 )
{
return r1.x1!=r2.x1 || r1.x2!=r2.x2 || r1.y1!=r2.y1 || r1.y2!=r2.y2;
}
{
return r1.x1!=r2.x1 || r1.x2!=r2.x2 || r1.y1!=r2.y1 || r1.y2!=r2.y2;
}
+
+void eRect::scale(int x_n, int x_d, int y_n, int y_d)
+{
+ ASSERT(x_d); ASSERT(y_d);
+ x1 *= x_n; x1 /= x_d;
+ x2 *= x_n; x2 /= x_d;
+ y1 *= y_n; y1 /= y_d;
+ y2 *= y_n; y2 /= y_d;
+}
+