View Issue Details

IDProjectCategoryView StatusLast Update
0031482RunnerHTML5Public2019-11-28 12:02
ReporterScott DunbarAssigned ToLuke Brown 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ResolvedResolutionFixed 
PlatformHTML5OSOS Version
Product Version2.2.4 
Target Version2.2.5Fixed in Version2.2.5 
Summary0031482: HTML5: 2.2.4 requires manually setting view wport/hport when using window_set_size() & surface_resize(application_surface)
DescriptionIssue:
 In previous versions (2.2.2) and in current (2.2.4) windows, using Window_set_size and surface_resize would correctly scale the application_surface for HTML5. However, in current (2.2.4) HTML5 the application_surface will not be correctly scaled unless you manually set the wport/hport of the view as well

Expected
Consistent behaviour between platforms
Steps To Reproduce1) Run the project using Windows export
2) See that the window is 1920x1080 and the blue coloured application_surface fills the window.
3) Run the project using HTML5.
4) See that although the application surface is 1920x1080 (empty black space) the game is drawn at the size of the viewport in the top left corner (640x360 as per Room Editor Settings).
5) Open object 'oInit'
6) Uncomment lines 16 and 17 to set manual resizing of the viewport.
7) Run the project using HTML5
8) See that the game is now correctly scaled and the blue background colour fills the full 1920x1080 application surface.
TagsNo tags attached.
1.4 Found In
2.x Runtime Found In2.2.4.374
2.x Runtime Verified In

Activities

Scott Dunbar

2019-11-07 14:47

Adminstrator  

html5_scaling.yyz (19,202 bytes)

Luke Brown

2019-11-22 16:14

Developer   ~0065148

fixed in gitlab