Skip to content

Commit

Permalink
Bug 1254: Fix viewport height in BCM VC IV ScreenDriver
Browse files Browse the repository at this point in the history
This should fix https://jogamp.org/bugzilla/show_bug.cgi?id=1254, which leads to windowed sketches not being centered in Processing.
  • Loading branch information
gohai committed Apr 4, 2016
1 parent 45cc13c commit 57b519c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ protected final void collectNativeMonitorModesAndDevicesImpl(final MonitorModePr
props[i++] = 0; // rotated viewport x pixel-units
props[i++] = 0; // rotated viewport y pixel-units
props[i++] = cachedWidth; // rotated viewport width pixel-units
props[i++] = cachedWidth; // rotated viewport height pixel-units
props[i++] = cachedHeight; // rotated viewport height pixel-units
props[i++] = 0; // rotated viewport x window-units
props[i++] = 0; // rotated viewport y window-units
props[i++] = cachedWidth; // rotated viewport width window-units
props[i++] = cachedWidth; // rotated viewport height window-units
props[i++] = cachedHeight; // rotated viewport height window-units
MonitorModeProps.streamInMonitorDevice(cache, this, currentMode, null, cache.monitorModes, props, 0, null);
}

Expand Down

0 comments on commit 57b519c

Please sign in to comment.