Skip to content

Commit

Permalink
Fix formatting and wording
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian committed Nov 20, 2024
1 parent 63f88fa commit ec625f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions GDJS/Runtime/runtimegame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,13 @@ namespace gdjs {

if (widthFactor < heightFactor) {
this._gameResolutionWidth = this._originalWidth;
this._gameResolutionHeight = Math.floor(windowInnerHeight / widthFactor);
this._gameResolutionHeight = Math.floor(
windowInnerHeight / widthFactor
);
} else {
this._gameResolutionWidth = Math.floor(windowInnerWidth / heightFactor);
this._gameResolutionWidth = Math.floor(
windowInnerWidth / heightFactor
);
this._gameResolutionHeight = this._originalHeight;
}
}
Expand Down
6 changes: 3 additions & 3 deletions newIDE/app/src/ProjectManager/ProjectPropertiesDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,15 @@ const ProjectPropertiesDialog = (props: Props) => {
/>
<SelectOption
value="scaleOuter"
label={t`Extend width or height to fill the screen (but never crop the original size)`}
label={t`Extend width or height to fill screen (without cropping the game area)`}
/>
<SelectOption
value="adaptWidth"
label={t`Extend or crop width to fit the screen`}
label={t`Adjust width to fill screen (extend or crop)`}
/>
<SelectOption
value="adaptHeight"
label={t`Extend or crop height to fit the screen`}
label={t`Adjust height to fill screen (extend or crop)`}
/>
</SelectField>
<Checkbox
Expand Down

0 comments on commit ec625f7

Please sign in to comment.