Skip to content

Resizing window introduces 1px white line #152

@Jarrio

Description

@Jarrio

Project.hx

package;

import ceramic.Entity;
import ceramic.Color;
import ceramic.InitSettings;

class Project extends Entity {

    function new(settings:InitSettings) {

        super();

        settings.antialiasing = 2;
        settings.targetWidth = 2560;
        settings.targetHeight = 1440;
        settings.scaling = RESIZE;
        settings.resizable = true;
        settings.background = Color.WHITE;
        app.onceReady(this, ready);

    }

    function ready() {

        // Set MainScene as the current scene (see MainScene.hx)
        app.scenes.main = new MainScene();

    }

}

Mainscene.hx

package;

import ceramic.Quad;
import ceramic.Scene;

class MainScene extends Scene {
  override function create() {
    var root = new Quad();
    root.color = 0x0a1929;
    root.bindToNativeScreenSize();
    add(root);
  }
}

If your operating systems display scaling is set to 100%, you won't be able to repro this. But anything greater than 100% seems to cause the issue, different scales can introduce the line at the top or on the side

My monitors resolution is 3840x2160 originally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions