Граф коммитов

120 Коммитов

Автор SHA1 Сообщение Дата
Myk Melez 1d1155fac2 preserve focus/visibility state 2014-10-28 14:14:27 -07:00
Marco Castelluccio f3b184b3e4 Move newArray and its relatives from Context and Runtime to util 2014-10-27 13:13:54 +01:00
Marco Castelluccio 820f2ef5da Pass ctx as last optional parameter. Fixes #485. 2014-10-27 12:37:53 +01:00
Yuan Xulei f5b4c22264 Implement methods to draw elliptial arc with tests. 2014-10-23 10:50:54 +08:00
Marco Castelluccio 4e990a3e37 Replace _this with this in Font.charsWidth and Font.substringWidth 2014-10-21 15:14:52 +02:00
Myk Melez dede680750 Merge pull request #467 from marco-c/fix_test_arithmetic
Fix TestArithmetic
2014-10-17 15:19:25 -07:00
Marco Castelluccio e116f40d61 Fix TextEditor (it passed with the check that was converting ints to longs, we should figure out why) 2014-10-17 12:15:41 -07:00
Marco Castelluccio 5270a577a8 Port other natives to Native.create 2014-10-16 20:08:51 -07:00
Marco Castelluccio b9e42a0abe Port other natives to use Native.create 2014-10-15 19:48:17 -07:00
Marco Castelluccio 338f62bdaa Remove opts parameter from Override.create/Native.create and use the MethodInfo's isStatic property. Fixes #443. 2014-10-14 16:38:16 -07:00
Marco Castelluccio 5ad8efa3ef Port other midp/gfx.js natives to Native.create 2014-10-14 15:45:40 -07:00
Marco Castelluccio 7d3e82a59b Port some gfx natives to Native.create 2014-10-14 14:52:03 -07:00
Myk Melez a760968dd3 override CGraphicsUtil.draw9pcsBackground with native impl 2014-10-03 02:02:06 -07:00
Brendan Dahl 8385651ce0 Various fixes for chrome. 2014-09-30 09:17:16 -07:00
Marco Castelluccio f7624bd5f4 Fix last instance in midp/gfx.js 2014-09-26 11:48:26 -07:00
Marco Castelluccio 01d6985889 Use 'S' for static, 'I' for non-static 2014-09-26 11:48:06 -07:00
Marco Castelluccio b71ee629f6 Fix all getField callers 2014-09-25 21:04:20 -07:00
Myk Melez 2f1c44ad73 override drawRegion to do renderRegion's work itself 2014-09-25 11:21:48 -07:00
Marco Castelluccio 5150e7a75f Add missing semicolon 2014-09-23 15:17:37 -07:00
Marco Castelluccio b831401e0e Move the loop that sets the pixels from Java to a JS native. Fixes #315. 2014-09-23 11:22:11 -07:00
Brendan Dahl eb9197dd31 Update the RGB color and gray color when setting ARGB. 2014-09-19 16:04:57 -07:00
Marco Castelluccio 6eb38bf8f8 getImageData starting from specific x and y 2014-09-18 11:15:56 -07:00
Marco Castelluccio 0b9fa95465 Take x, y, width, height into account in contextToRgbData 2014-09-18 10:31:28 -07:00
Marco Castelluccio c9c860b27d Remove globalCompositeOperation hack 2014-09-17 16:13:54 -07:00
Marcus Cavanaugh a16e85e77e [gfx] Point nativeImageData at the Context2D rather than the Canvas. 2014-09-17 11:31:40 -07:00
Marco Castelluccio fbdcfdadb4 Merge branch 'master' of https://github.com/andreasgal/j2me.js into gfx_tests 2014-09-16 10:47:14 -07:00
Marco Castelluccio ba75a07e76 Precisely specify the font to use as system font 2014-09-16 09:17:42 -07:00
Myk Melez 6088360acd move CanvasItem methods from TextEditor to CanvasItem 2014-09-16 01:02:21 -07:00
Myk Melez 64ea374234 partly implement setCaret 2014-09-16 00:31:03 -07:00
Myk Melez b177dc08e0 implement CanvasItem.getPositionX/Y; move .setPosition to CanvasItem 2014-09-16 00:06:58 -07:00
Myk Melez 2ea20bb03c move display back to right side of screen 2014-09-15 23:57:30 -07:00
Myk Melez aade07657a implement get/setBackground/ForegroundColor 2014-09-15 21:52:07 -07:00
Myk Melez 08c632c13f implement TextEditor.setPosition; move canvas to top-left corner 2014-09-15 16:19:03 -07:00
Myk Melez d939e21f4f truncate content when setting maxSize 2014-09-15 15:23:34 -07:00
Myk Melez 25c008fa82 implement TextEditor constructor's text attribute 2014-09-15 15:09:52 -07:00
Myk Melez bb8f4d5890 warn and test that constraints aren't implemented 2014-09-15 14:49:07 -07:00
Myk Melez ba03e4c93e implement maxSize/getMaxSize/setMaxSize 2014-09-15 14:34:25 -07:00
Myk Melez af8bde28c2 set the native text editor widget size 2014-09-15 14:10:36 -07:00
Myk Melez 4076961fe6 move isVisible from TextEditor to CanvasItem; test setVisible/isVisible 2014-09-15 10:29:10 -07:00
Marco 6916cbcc81 Merge pull request #263 from mykmelez/texteditor-plus
implement getCaretPosition
2014-09-15 09:52:33 -07:00
Myk Melez 2ed224f767 implement getCaretPosition 2014-09-15 09:48:25 -07:00
Marco Castelluccio c0a077a62a Reverse x and y parameters in drawPixels 2014-09-15 09:29:47 -07:00
Marco Castelluccio 67a7dbf397 Merge branch 'master' of https://github.com/andreasgal/j2me.js into directgraphicsimp_getPixels_drawPixels 2014-09-15 09:27:56 -07:00
Marco Castelluccio f4505773ca Add message to NullPointerException exceptions in getPixels and drawPixels 2014-09-15 09:27:27 -07:00
Marco Castelluccio fc6e6bf418 Cleanup 2014-09-15 08:56:50 -07:00
Marco Castelluccio 5ea34a7620 Refactor code to convert native image data 2014-09-15 08:48:30 -07:00
Marco Castelluccio 586733662c Implement DirectGraphicsImp::drawPixels 2014-09-15 08:42:10 -07:00
Marco Castelluccio 967f4ed575 Implement DirectGraphicsImp::getPixels 2014-09-15 08:38:50 -07:00
Myk Melez af40299f26 call TextEditor natives directly 2014-09-15 08:38:02 -07:00
Marco Castelluccio ab803dd616 Use createTexture when possible 2014-09-15 08:32:28 -07:00