view gui/mplayer/pixmaps/dolby.xpm @ 33107:eda3df3e4a9d

Prevent an out-of-bounds array access. This out-of-bounds array access was of not much effect until r33190, because the variables falsely changed (set to 1) were either almost always unused (the last member of the mainItems array) or variable menuIsPresent which only has effect if there is a menu present (in which case it is set anyway). With r33190 the wItem (and thus the guiItems) structure size changed and now variables were accessed whose changings have visible effect. After releasing the moved main (or playbar) window, the IndexOfItems values got destroyed and items disappeared.
author ib
date Sun, 03 Apr 2011 14:24:36 +0000
parents 09c3ce60f369
children
line wrap: on
line source

/* XPM */
static const char * const dolby_xpm[] = {
"16 11 9 1",
" 	c None",
".	c #000000",
"+	c #C3C828",
"@	c #BCBF27",
"#	c #DBE82C",
"$	c #B5B626",
"%	c #CAD229",
"&	c #CDD62A",
"*	c #C6CD29",
"................",
".+@@###..###@@+.",
".$...%#..#%...$.",
".$....#..#....$.",
".$....&..&....$.",
".$....&..&....$.",
".$....&..&....$.",
".$....#..#....$.",
".$...%#..#%...$.",
".+@@*##..##*@@+.",
"................"};