Commit Graph

2576 Commits

Author SHA1 Message Date
Joshua Granick
7fb5ce0f78 Merge pull request #732 from bmfs/fix_html5_png_encode
Fix png encoding in the html5 target
2016-05-29 17:18:00 -07:00
Joshua Granick
3e74286800 Merge pull request #747 from vroad/virtual-destructor-fix
Implement virtual destructors in some C++ classes
2016-05-25 20:11:02 -07:00
vroad
9d5839bc73 Fix spaces 2016-05-26 11:41:19 +09:00
vroad
bb9d3327ec Implement virtual destructor in Application 2016-05-26 11:40:34 +09:00
vroad
166808d706 Implement virtual destructors in some C++ classes 2016-05-26 11:13:01 +09:00
Joshua Granick
15a0c0fae7 Merge pull request #746 from vroad/imageBuffer-init-premultiplied
Initialize premultiplied in ImageBuffer's constructor
2016-05-25 08:44:08 -07:00
vroad
6c35e54c8d Initialize premultiplied in ImageBuffer's constructor 2016-05-26 00:13:10 +09:00
Joshua Granick
1f4d08cddd Update LICENSE.md 2016-05-24 23:55:55 -07:00
Joshua Granick
e6f5f23180 Update CI script 2016-05-24 11:31:57 -07:00
Joshua Granick
fe913e7a76 Compile fix 2016-05-24 11:24:30 -07:00
Joshua Granick
332b75b725 Compile fix 2016-05-24 11:10:08 -07:00
Joshua Granick
e2fcae4c9b Handle garbage collection for OpenGL API 2016-05-24 03:09:11 -07:00
James Gray
f7422f59bb console: implement AudioSource.gain 2016-05-24 03:58:30 -05:00
James Gray
278fec8e45 tools: remove default window dimensions for console targets 2016-05-21 00:09:50 -05:00
Joshua Granick
61692223a4 Update include.xml 2016-05-19 00:10:21 -07:00
Joshua Granick
8a13cd95c7 Merge pull request #737 from mauvecow/neko-openal-fix
OpenALBindings: Converted val_array references to be neko compatible.
2016-05-18 23:40:33 -07:00
mauve
174025e7a4 OpenALBindings: Converted val_array references to be neko compatible. 2016-05-18 23:37:58 -07:00
Joshua Granick
c73b84291e Remove legacy reference 2016-05-18 22:19:48 -07:00
Joshua Granick
cf1d25d950 Remove Lime legacy/hybrid mode 2016-05-18 22:17:06 -07:00
Joshua Granick
6b83072519 Fix application.preloader reference 2016-05-17 12:12:14 -07:00
Joshua Granick
94c4833b54 Merge pull request #734 from tanis2000/develop
Fixes for tvOS.
2016-05-17 09:06:14 -07:00
Valerio Santinelli
1062d4d9eb Fixes for tvOS.
Forces the architecture to be 64 bit only when using the simulator.
Also fixes an issue where it was being set the wrong define thus not allowing to build for the simulator as expected.
2016-05-17 15:48:32 +02:00
Bruno Santos
0b4d325749 Fix png encoding in the html5 target 2016-05-16 14:04:57 +01:00
Joshua Granick
51099df564 Shorten macro (thanks @player-03) 2016-05-14 11:27:02 -07:00
Joshua Granick
e26906f065 Update window close behavior 2016-05-14 11:24:03 -07:00
Joshua Granick
22549c557b Fix cache-break value to be once-per-compile 2016-05-14 11:03:23 -07:00
Joshua Granick
951addec2a Improve behavior of onPreloadComplete 2016-05-14 10:48:09 -07:00
Joshua Granick
d530ec8451 HTML5 Image fixes 2016-05-13 15:38:40 -07:00
Joshua Granick
7009358d25 Progress on better WebGL support in Image 2016-05-12 23:15:24 -07:00
Joshua Granick
dda6f6a2db Add Cairo showGlyphs 2016-05-12 09:40:18 -07:00
Joshua Granick
d8b077d319 Try a module system that's resilient to added events 2016-05-11 00:41:24 -07:00
MrCdK
0ffb52fcac Fix Image.copyPixels() with negative dest
It was setting the source rect x and y to the dest x and y and not subtracting it.
2016-05-05 18:45:50 +02:00
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