projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b13f2
)
gdsys: osd: Allow osdsize on valid screens only
author
Dirk Eibach
<dirk.eibach@gdsys.cc>
Thu, 2 Jun 2016 07:05:40 +0000
(09:05 +0200)
committer
Tom Rini
<trini@konsulko.com>
Mon, 6 Jun 2016 17:39:13 +0000
(13:39 -0400)
Limit "osdsize"-command to access valid screens only.
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/gdsys/common/osd.c
patch
|
blob
|
history
diff --git
a/board/gdsys/common/osd.c
b/board/gdsys/common/osd.c
index 4e292f56626ad4b9affd229299b08d42f6f1cc77..add95743698f7b4c51a93d9a6f1b734b8b257ee7 100644
(file)
--- a/
board/gdsys/common/osd.c
+++ b/
board/gdsys/common/osd.c
@@
-469,6
+469,9
@@
int osd_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
for (screen = 0; screen < MAX_OSD_SCREEN; ++screen) {
+ if (!(osd_screen_mask & (1 << screen)))
+ continue;
+
OSD_SET_REG(screen, xy_size, ((x - 1) << 8) | (y - 1));
OSD_SET_REG(screen, x_pos, 32767 * (640 - 12 * x) / 65535);
OSD_SET_REG(screen, y_pos, 32767 * (480 - 18 * y) / 65535);