Crash fix, minor changes

This commit is contained in:
Joshua Granick
2018-08-02 19:20:05 -07:00
parent 415627069e
commit feeb8c150b
3 changed files with 9 additions and 15 deletions

View File

@@ -2,7 +2,7 @@ import hxp.helpers.ProcessHelper;
import hxp.HXML; import hxp.HXML;
import sys.io.File; import sys.io.File;
class Build { class Build extends hxp.Script {
public function new () { public function new () {

View File

@@ -53,15 +53,15 @@ namespace lime {
void* DisplayMode::Value () { void* DisplayMode::Value () {
if (_mode) { // if (_mode) {
_mode->height = height; // _mode->height = height;
_mode->pixelFormat = pixelFormat; // _mode->pixelFormat = pixelFormat;
_mode->refreshRate = refreshRate; // _mode->refreshRate = refreshRate;
_mode->width = width; // _mode->width = width;
return _mode; // return _mode;
} else { // } else {
if (!init) { if (!init) {
@@ -80,7 +80,7 @@ namespace lime {
alloc_field (displayMode, id_width, alloc_int (width)); alloc_field (displayMode, id_width, alloc_int (width));
return displayMode; return displayMode;
} // }
} }

View File

@@ -255,12 +255,6 @@ class HTML5Application {
nextUpdate = currentUpdate - (currentUpdate % framePeriod) + framePeriod; nextUpdate = currentUpdate - (currentUpdate % framePeriod) + framePeriod;
//while (nextUpdate <= currentUpdate) {
//
//nextUpdate += framePeriod;
//
//}
} }
lastUpdate = currentUpdate; lastUpdate = currentUpdate;