Skip to content

Commit

Permalink
Pass windowFeatures to Krom
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jul 15, 2018
1 parent d25d1e9 commit 8840f49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Backends/Krom/Krom.hx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extern class Krom {
static function writeAudioBuffer(bufferValue: Float): Dynamic;
static function loadBlob(file: String): js.html.ArrayBuffer;

static function init(title: String, width: Int, height: Int, samplesPerPixel: Int, vSync: Bool, windowMode: Int, resizable: Bool, maximizable: Bool, minimizable: Bool): Void;
static function init(title: String, width: Int, height: Int, samplesPerPixel: Int, vSync: Bool, windowMode: Int, windowFeatures: Int): Void;
static function log(string: String): Void;
static function setCallback(callback: Void->Void): Void;
static function setDropFilesCallback(callback: String->Void): Void;
Expand Down
2 changes: 1 addition & 1 deletion Backends/Krom/kha/SystemImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class SystemImpl {
}

public static function init(options: SystemOptions, callback: Window -> Void): Void {
Krom.init(options.title, options.width, options.height, options.framebuffer.samplesPerPixel, options.framebuffer.verticalSync, cast options.window.mode, true, true, true);
Krom.init(options.title, options.width, options.height, options.framebuffer.samplesPerPixel, options.framebuffer.verticalSync, cast options.window.mode, options.window.windowFeatures);

start = Krom.getTime();

Expand Down

0 comments on commit 8840f49

Please sign in to comment.