A couple fixes
This commit is contained in:
parent
e2537a153d
commit
408751b70a
|
|
@ -25,6 +25,10 @@ else
|
||||||
GNOME_DIR=$ROOT_DIR/gnome/backports/$GNOME_BACKPORT/gnome/
|
GNOME_DIR=$ROOT_DIR/gnome/backports/$GNOME_BACKPORT/gnome/
|
||||||
BUILD_FILE_NAME=breezyGNOME-$GNOME_BACKPORT_NAME-$ARCH.tar.gz
|
BUILD_FILE_NAME=breezyGNOME-$GNOME_BACKPORT_NAME-$ARCH.tar.gz
|
||||||
rm -rf $GNOME_DIR/build
|
rm -rf $GNOME_DIR/build
|
||||||
|
|
||||||
|
pushd $GNOME_DIR
|
||||||
|
git submodule update --init
|
||||||
|
popd
|
||||||
fi
|
fi
|
||||||
GNOME_BUILD_DIR=$GNOME_DIR/build
|
GNOME_BUILD_DIR=$GNOME_DIR/build
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -293,15 +293,15 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
|
||||||
|
|
||||||
// monitors make a flat wall in front of us, no wrapping
|
// monitors make a flat wall in front of us, no wrapping
|
||||||
monitorDetailsList.forEach((monitorDetails, index) => {
|
monitorDetailsList.forEach((monitorDetails, index) => {
|
||||||
const upPixels = -monitorDetails.y + (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels;
|
const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels;
|
||||||
const westPixels = -monitorDetails.x + (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels;
|
const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels;
|
||||||
|
|
||||||
// offsets for aligning this monitor's center with the fov-sized viewport's center
|
// offsets for aligning this monitor's center with the fov-sized viewport's center
|
||||||
const westCenterOffsetPixels = -(monitorDetails.width - fovDetails.widthPixels) / 2;
|
const westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2;
|
||||||
const upCenterOffsetPixels = -(monitorDetails.height - fovDetails.heightPixels) / 2;
|
const upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2;
|
||||||
|
|
||||||
const westCenterPixels = westPixels + westCenterOffsetPixels;
|
const westCenterPixels = westLeftPixels - westCenterOffsetPixels;
|
||||||
const upCenterPixels = upPixels + upCenterOffsetPixels;
|
const upCenterPixels = upTopPixels - upCenterOffsetPixels;
|
||||||
|
|
||||||
monitorPlacements.push({
|
monitorPlacements.push({
|
||||||
originalIndex: index,
|
originalIndex: index,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue