GSDX: Rework Internal resolution function. [windows] #829

Merged
merged 4 commits into from Sep 21, 2015
Commits on Sep 14, 2015
  1. @ssakash

    GSDX: Rework Internal Resolution function

    ssakash committed Sep 8, 2015
    upscale_multiplier function values have been changed to allocate native resolution and also move custom resolution to 9.
    Remove the old native checkbox value and include Native in the combo box.
    Internal GSDX functions have also been updated with this new update to the upscale_multiplier variable.
Commits on Sep 20, 2015
  1. @ssakash
  2. @gregory38 @ssakash
  3. @turtleli @ssakash

    gsdx: Fix custom resolution and minor cleanup

    turtleli committed with ssakash Sep 20, 2015
    This fixes the following issues when custom resolution is selected.
     - When the width is smaller than the native resolution width, the
       texture cache targets are removed on every Vsync signal, causing a
       black screen issue.
     - The texture cache code needs a 1 returned for the custom resolution
       upscale multiplier or there'll be some really funny graphical issues.
    
    It also removes unnecessary GetConfig (which I think unconditionally
    does a a file read on Windows) calls if the width was increased - the
    upscale multiplier is already stored, and the custom resolution width
    and height calls are now unnecessary.
    
    Also fix some whitespace issues.