Leander Hasty
ca2a5cba9a
HTML5Window.handleResize: various "prefer exact integers" fixes for the non-stretch case:
...
Avoid dividing by zero if we somehow come in with setWidth or setHeight 0 (taking a hint from recent handleTouchEvent changes -- we never witnessed this but it seemed worth a bit of paranoia while we were making changes).
Prefer meeting either element.clientWidth or element.clientHeight exactly if scaleX or scaleY are smaller, respectively. This avoids introducing float inaccuracies in some cases by recomputing style.width or style.height later.
When multiplying the other dimension, round down. Similarly, when computing margins, round down. This avoids a half-pixel offset (possible performance implications?) in cases where the difference between the computed dimension is different from the client dimension by an odd amount (could e.g. see "marginLeft: -0.5px" here due to this and the aforementioned recompute).
Also dedupes a bit of code between the "we have a canvas" vs "we have a div" branches.
Reviewed locally by Jon Meschino.
2016-04-22 15:26:16 -04:00
James Gray
9d95964f2f
console: add setPixelShaderConstantF method
2016-04-20 02:51:57 -05:00
James Gray
80590ab317
console: add debugReadFrameBuffer method
2016-04-20 02:51:46 -05:00
James Gray
fe30467393
console: make ConsoleRenderContext an extern class
...
Finally made ConsoleRenderContext an extern class, thanks to a workaround to
default args not working. @:overload is used in combination with the actual
default args specified in the C++ headers.
See https://github.com/HaxeFoundation/haxe/issues/3955 .
2016-04-20 02:51:19 -05:00
James Gray
15b5a2dc3f
console: suppress trace output for -final builds
2016-04-20 02:50:59 -05:00
James Gray
dc727a8ccb
console: simplify Assets.hx compile conditionals
2016-04-20 02:50:36 -05:00
Joshua Granick
aec635bbd2
Merge pull request #708 from larsiusprime/patch-2
...
Update ExternalInterface.cpp
2016-04-05 13:17:12 -07:00
Lars Doucet
b3164fa161
Update ExternalInterface.cpp
...
Fix audio crash bug for embedded audio (thanks @mauvecow!)
2016-04-05 15:13:56 -05:00
Joshua Granick
7e6855d4ae
Merge pull request #707 from larsiusprime/patch-1
...
Update ExternalInterface.cpp
2016-04-05 12:36:45 -07:00
Lars Doucet
da26e563f7
Update ExternalInterface.cpp
...
Comment out free() in System.getDocumentDirectory with note about crash
2016-04-05 14:27:17 -05:00
Joshua Granick
9c2b9d2889
Crash fix
2016-04-02 00:56:40 -07:00
Joshua Granick
28f828262c
Fix case where displayInfo.currentMode is not active yet
2016-04-02 00:56:40 -07:00
Joshua Granick
60539e7e92
Update CHANGELOG.md
2016-03-29 08:46:53 -07:00
Joshua Granick
0befb60445
Update CHANGELOG
2.9.1
2016-03-28 10:37:58 -07:00
Joshua Granick
8421979626
Update to 2.9.1
2016-03-28 10:37:52 -07:00
Joshua Granick
75bb6905af
alloc_string does a copy (need to clean up some memory)
2016-03-14 10:11:37 -07:00
Joshua Granick
0579d97b9e
Merge pull request #701 from rocket-games/fix-system-dir-mem-leak
...
Fix system dir string leak
2016-03-14 09:35:15 -07:00
Joshua Granick
3e4981dbc3
Merge pull request #702 from soywiz/fix-async-loadBytes
...
Make DefaultAssetsLibrary.loadBytes binary-safe in flash
2016-03-14 09:34:24 -07:00
Joshua Granick
2bc4eec617
Update native window size and position immediately after fullscreen change
2016-03-13 22:02:40 -07:00
Carlos Ballesteros Velasco
55ab5b5672
Make DefaultAssetsLibrary.loadBytes binary-safe in flash
2016-03-10 14:29:17 +01:00
Jonathan Como
72184c843c
Free string after converting to value when getting the SystemDirectory
2016-03-09 16:18:17 -08:00
Joshua Granick
95bec1c4a1
Do not set a default meta company value
2016-03-01 13:35:37 -08:00
Joshua Granick
4b2520a13f
Add flag for allow high DPI
2016-03-01 11:53:54 -08:00
Joshua Granick
78bf85b766
Move drop file event to Window, handle mouse capture automatically
2016-03-01 10:45:33 -08:00
Yanrishatum
85ec75fd59
Drag&Drop support; SDL_CaptureMode support; Maximize window support;
2016-03-01 09:53:24 -08:00
Joshua Granick
3a7d8b80e5
Fix suffix name for new HXCPP plus Lime legacy
2016-02-19 19:30:05 -08:00
Joshua Granick
ac0085908c
Initial support for haxelib 'path' attribute
2016-02-15 12:47:21 -08:00
Joshua Granick
f21fe6bc2b
Merge pull request #689 from mikkelmr/develop
...
Added missing dependency for IOS
2016-02-13 08:09:20 -08:00
Mikkel Munck Rasmussen
ffebb78446
Added missing dependency for IOS
...
Makes included examples build againg.
2016-02-11 13:32:39 +01:00
Joshua Granick
21b7993bd5
Add guard in PathHelper
2016-02-04 14:27:49 -08:00
Joshua Granick
8cb537ccd6
Add polyfill for canvas context.isPointInStroke ( fix openfl/openfl#973 )
2016-02-04 14:23:15 -08:00
Joshua Granick
4b5ea217ba
Patch issue where Cairo may render at wrong font size ( fix openfl/openfl#1023 )
2016-01-26 09:36:23 -08:00
Joshua Granick
0f0491ddbe
Emscripten fix
2.9.0
2016-01-22 12:13:23 -08:00
Joshua Granick
7eea607731
Update CHANGELOG
2016-01-22 10:39:26 -08:00
Joshua Granick
ae99a783c6
Update to 2.9.0
2016-01-22 10:39:17 -08:00
Joshua Granick
13b4c9263c
Improve application exit, try to allow exit to be canceled
2016-01-22 10:38:45 -08:00
Joshua Granick
5454568301
Merge pull request #679 from DanielUranga/readPixels_fix
...
Renderer.readPixels fix
2016-01-22 09:19:06 -08:00
Daniel Uranga
119c281d05
Set Renderer.readPixels alpha channel to be non-transparent on native targets
2016-01-21 01:25:20 -03:00
Joshua Granick
35b555f04a
Prevent use of Lime classes in Lime legacy
2016-01-20 14:00:19 -08:00
Joshua Granick
8b595c877d
Include environment in if/unless project XML checks
2016-01-19 16:11:16 -08:00
Joshua Granick
93b694bd05
Define FINAL and RELEASE in the template context
2016-01-15 12:32:30 -08:00
Joshua Granick
9228bddd87
Allow disabling of disabling keyboard browser events in HTML5
2016-01-15 12:32:19 -08:00
Joshua Granick
e9f7839680
Add a try/catch, in case an -armv5 style argument does not match an expected ARM architecture
2016-01-13 09:16:59 -08:00
Joshua Granick
b8646f1596
Move get display index to C++
2016-01-12 11:43:13 -08:00
Joshua Granick
bd7bb51000
Add display.dpi for Flash, default value for HTML5
2016-01-12 09:45:13 -08:00
Joshua Granick
d44dd7b27e
Compile fix
2016-01-12 09:44:57 -08:00
Joshua Granick
81b87ce76a
Simplify display.dpi to diagonal value
2016-01-12 09:39:19 -08:00
Joshua Granick
d1d6e22673
Merge pull request #669 from larsiusprime/display_dpi
...
Expose display device DPI
2016-01-12 09:33:29 -08:00
Lars Doucet
b240ff08e8
Expose display device DPI
2016-01-12 09:15:28 -06:00
Joshua Granick
c626ca1ff8
Patch in support for disabling copy of NDLL files
2016-01-11 16:43:01 -08:00