rpza resolution fix, courtesy of Todd Kirby (doubleshot at pacbell.net)