sdk
7 years agoecere,ecereCOM: support Emscriptem platform. add new Emscripten interface driver.
Rejean Loyer [Wed, 9 Dec 2015 22:31:28 +0000 (17:31 -0500)]
ecere,ecereCOM: support Emscriptem platform. add new Emscripten interface driver.
 - <NOTE> had to move GetDisplayDriver and GetDisplaySystem to end of Display.ec file due to compiler issue
 - #if !defined(__EMSCRIPTEN__) out:
    - dynamic loading
    - thread/mutex/semaphore and Condition class
    - file monitoring
    - png/jpeg/gif
    - X driver
    - NCurses driver
    - dcom
 - add emscripten_main_loop_callback in GuiApplication.ec
 - use of glfw and a bit of tweaking in the OpenGL driver

7 years agoecere/gfx/3D: Lighting fixes; Meta shader; normal mapping; environment mapping; cube...
Jerome St-Louis [Thu, 28 Jul 2016 21:22:05 +0000 (17:22 -0400)]
ecere/gfx/3D: Lighting fixes; Meta shader; normal mapping; environment mapping; cube maps; single IBO sphere

7 years agoecere/gfx/drivers/OpenGL: Fixed leaked GLX context from OGLSystem
Jerome St-Louis [Sun, 17 Jul 2016 11:32:09 +0000 (20:32 +0900)]
ecere/gfx/drivers/OpenGL: Fixed leaked GLX context from OGLSystem

7 years agoecere/gfx/drivers/OpenGL: Fixed OGLDisplay access from within Display
Jerome St-Louis [Fri, 15 Jul 2016 11:32:04 +0000 (20:32 +0900)]
ecere/gfx/drivers/OpenGL: Fixed OGLDisplay access from within Display
- GLX structs were confusing the compiler and GLCapabilities were being returned wrong

7 years agoecere/gfx/drivers/OpenGL: Fixes for Android
Jerome St-Louis [Sun, 17 Jul 2016 07:34:01 +0000 (03:34 -0400)]
ecere/gfx/drivers/OpenGL: Fixes for Android

7 years agoecere/gfx/drivers/OpenGL: Removed unused gl_core_3_3 glLoadGen definitions
Jerome St-Louis [Fri, 15 Jul 2016 07:22:49 +0000 (03:22 -0400)]
ecere/gfx/drivers/OpenGL: Removed unused gl_core_3_3 glLoadGen definitions
- We always include the compatibility headers

7 years agoecere/gfx/drivers/OpenGL: Fixed namespace pollution
Jerome St-Louis [Fri, 15 Jul 2016 07:20:02 +0000 (03:20 -0400)]
ecere/gfx/drivers/OpenGL: Fixed namespace pollution
- Renamed public functions to glshd* and moved from shading.ec to OpenGLDisplayDriver.ec
- Changed GLABDeleteBuffers to GLAB::DeleteBuffers()

7 years agoecere/gfx/drivers/OpenGL/Shaders: Support for Specular, Spotlights, Attenuation
Jerome St-Louis [Fri, 15 Jul 2016 07:19:33 +0000 (03:19 -0400)]
ecere/gfx/drivers/OpenGL/Shaders: Support for Specular, Spotlights, Attenuation
- Updated positional lights code to reflect recent clarifications
- Reverted to setting separate projection and modelview matrix for specular calculations
- Also included specular fix using dFdx/dFdy in fragment shader

7 years agoecere/gfx/drivers/OpenGL: Setting specular to 0 when power is 0
Jerome St-Louis [Fri, 15 Jul 2016 07:10:21 +0000 (03:10 -0400)]
ecere/gfx/drivers/OpenGL: Setting specular to 0 when power is 0

7 years agoecere/gfx/3D/.3DS; drivers/OpenGL: Improved light attenuation
Jerome St-Louis [Fri, 15 Jul 2016 07:08:57 +0000 (03:08 -0400)]
ecere/gfx/3D/.3DS; drivers/OpenGL: Improved light attenuation
- Better attenuation factors from .3DS
- Resetting attenuation when setting light without attenuation

7 years agoecere/gfx/3D; drivers/OpenGL: Clarified and fixed behavior of positional lights
Jerome St-Louis [Fri, 15 Jul 2016 07:01:10 +0000 (03:01 -0400)]
ecere/gfx/3D; drivers/OpenGL: Clarified and fixed behavior of positional lights
- 'direction' always means light direction, not position, regardless of having a target or not
- 3DS 'omni' light now sets GL_SPOT_DIRECTION even if flags.spot is off
- Fixed consistency issue for non-spot light not subtracting camera position
- Updated samples/3D/ColorSpheres

7 years agoecere/gui/Window: Disabling GL Shaders by default
Jerome St-Louis [Fri, 15 Jul 2016 07:12:02 +0000 (03:12 -0400)]
ecere/gui/Window: Disabling GL Shaders by default
- We have better performance with the FFP at the moment
- The shaders will still kick in if FFP is not supported

7 years agoecere/gfx/drivers/OpenGL: Disabling separate specular color
Jerome St-Louis [Fri, 15 Jul 2016 07:11:01 +0000 (03:11 -0400)]
ecere/gfx/drivers/OpenGL: Disabling separate specular color
- Should eventually make this a Material flag

7 years agoecere/gfx/drivers/OpenGL: Fixed alpha blended window rendering
Jerome St-Louis [Fri, 15 Jul 2016 05:58:37 +0000 (01:58 -0400)]
ecere/gfx/drivers/OpenGL: Fixed alpha blended window rendering
- Also fixed non power of 2 detection in Core Profile (glGetString() unavailable)

7 years agoecere/gfx/OpenGL; FontRendering; Window: Fixed rendering in non-locked Display
Jerome St-Louis [Fri, 15 Jul 2016 05:52:07 +0000 (01:52 -0400)]
ecere/gfx/OpenGL; FontRendering; Window: Fixed rendering in non-locked Display

7 years agoecere/gfx/drivers/OpenGL: Renamed glHelpers.h -> gl123es.h
Jerome St-Louis [Fri, 15 Jul 2016 05:40:17 +0000 (01:40 -0400)]
ecere/gfx/drivers/OpenGL: Renamed glHelpers.h -> gl123es.h

7 years agoecere/gfx/OpenGLDisplayDriver: Fixed LockArrays extension declarations
Jerome St-Louis [Fri, 15 Jul 2016 05:49:02 +0000 (01:49 -0400)]
ecere/gfx/OpenGLDisplayDriver: Fixed LockArrays extension declarations
- Was missing 'default'

7 years agoecere/gfx/drivers/OpenGL: Core profile support
Jerome St-Louis [Mon, 11 Jul 2016 11:03:34 +0000 (07:03 -0400)]
ecere/gfx/drivers/OpenGL: Core profile support
- Can set glCapabilities.compatible = false on top level Window to request a core profile
- Setting up a VAO per display
- Renamed glcaps -> glCaps

7 years agoecere/gfx/drivers/OpenGL: Optimized immediate mode emulation
Jerome St-Louis [Mon, 11 Jul 2016 04:16:48 +0000 (00:16 -0400)]
ecere/gfx/drivers/OpenGL: Optimized immediate mode emulation
- Making use of glBufferSubData
- Batching glyphs of a single WriteText() call

7 years agoecere/gfx/drivers/OpenGL: Shaders improvements; GLCapabilities Tweaks
Jerome St-Louis [Sun, 10 Jul 2016 09:23:09 +0000 (05:23 -0400)]
ecere/gfx/drivers/OpenGL: Shaders improvements; GLCapabilities Tweaks
- Setting Normal, ModelView X Projection matrix and Model View Z column
  (Solves normalization with non-uniform scale, avoids multiplying ModelView X Projection for each vertex)
- Using glcaps* globals for GL capabilities to avoid invasive changes and pointer dereferencing throughout

7 years agoecere/gfx: Ability to switch between shaders and fixed-function programmatically
Jerome St-Louis [Wed, 6 Jul 2016 09:30:11 +0000 (05:30 -0400)]
ecere/gfx: Ability to switch between shaders and fixed-function programmatically
- No longer need to build separate versions for legacy and modern GL
- Can set 'glCapabilities' on a Window and enable/disable use (if available) of:
   legacy, shaders, nonPow2Textures, vertexBuffer, frameBuffer, immediate, fixedFunction, quads, intAndDouble

7 years agoecere/drivers/OpenGL (Android): Fixed warning redefining GL_BGRA_EXT
Jerome St-Louis [Wed, 6 Jul 2016 09:45:34 +0000 (05:45 -0400)]
ecere/drivers/OpenGL (Android): Fixed warning redefining GL_BGRA_EXT
- Properly redefining to GL_RGBA as a workaround
   ( Grab Screen and BlitDI/StretchDI will have wrong colors )

7 years agoecere/gfx/drivers/OpenGL (Android): Fixed blank textures
Jerome St-Louis [Tue, 28 Jun 2016 00:42:42 +0000 (20:42 -0400)]
ecere/gfx/drivers/OpenGL (Android): Fixed blank textures
- CheckExtension() was not being called and not setting up pow2textures and max texture size

7 years agoecere/gfx/drivers/OpenGL: twoSided parameter for shader_setSimpleMaterial()
Jerome St-Louis [Thu, 19 May 2016 22:57:27 +0000 (18:57 -0400)]
ecere/gfx/drivers/OpenGL: twoSided parameter for shader_setSimpleMaterial()

7 years agoecere/gfx/drivers/GL: Not printing out GL debugging notifications
Jerome St-Louis [Fri, 22 Apr 2016 03:43:13 +0000 (23:43 -0400)]
ecere/gfx/drivers/GL: Not printing out GL debugging notifications

7 years agoecere/gfx/drivers/GL: Declaring functions not taking any values as (void)
Jerome St-Louis [Wed, 20 Apr 2016 09:53:20 +0000 (05:53 -0400)]
ecere/gfx/drivers/GL: Declaring functions not taking any values as (void)
- Ran into confusing troubles because the compilers were not complaining about glPopAttrib(GL_ALL_ATTRIB_BITS)
- Win32Interface: Ensuring CALLBACK includes __attribute__((__force_align_arg_pointer__)) for recent GCC
  This should also probably be done directly in _mingw.h (Done in the Installer's version)

7 years agoecere/gfx/OpenGL/matrixStack: Flipped glmsRotated() signs to match OpenGL behavior
Jerome St-Louis [Mon, 18 Apr 2016 11:01:04 +0000 (07:01 -0400)]
ecere/gfx/OpenGL/matrixStack: Flipped glmsRotated() signs to match OpenGL behavior
- API Change: ecere/gfx/3D/Quaternion: RotationAxis() now taking a Vector3D instead of a Vector3Df

7 years agoecere/gfx/OpenGL: (OpenGL ES) Support for glColor4f() with lighting enabled
Jerome St-Louis [Mon, 18 Apr 2016 09:52:22 +0000 (05:52 -0400)]
ecere/gfx/OpenGL: (OpenGL ES) Support for glColor4f() with lighting enabled
- Color material emulation

7 years agoecere/gfx/OpenGL: Shaders fixes for rendering offscreen; _GLES compilation
Jerome St-Louis [Sun, 17 Apr 2016 03:41:21 +0000 (23:41 -0400)]
ecere/gfx/OpenGL: Shaders fixes for rendering offscreen; _GLES compilation

7 years agoecere/gfx/drivers/GL/matrixStack: Added glGetDoublev()
Jerome St-Louis [Sun, 10 Apr 2016 12:21:06 +0000 (08:21 -0400)]
ecere/gfx/drivers/GL/matrixStack: Added glGetDoublev()
- Implemented support for querying matrices

7 years agoecere/gfx/OpenGL: Standardized on _GLES for ES 1.1 and _GLES2 for ES 2.0
Jerome St-Louis [Fri, 1 Apr 2016 22:10:47 +0000 (18:10 -0400)]
ecere/gfx/OpenGL: Standardized on _GLES for ES 1.1 and _GLES2 for ES 2.0
- Fixed bug in matrixStack's glLoadMatrix
- Fixed shading.ec compilation with ECERE_NO3D

7 years agoecere/gfx/drivesr/OpenGL: WebGL Fixes
Jerome St-Louis [Thu, 10 Mar 2016 16:41:01 +0000 (11:41 -0500)]
ecere/gfx/drivesr/OpenGL: WebGL Fixes

7 years agoecere/gfx/drivers/OpenGL: Fixed warnings
Jerome St-Louis [Thu, 4 Feb 2016 20:53:11 +0000 (15:53 -0500)]
ecere/gfx/drivers/OpenGL: Fixed warnings

7 years agoecere/gfx/OpenGL: Fixes for basic 2D and 3D support without VBOs
Jerome St-Louis [Sat, 16 Jan 2016 07:54:56 +0000 (02:54 -0500)]
ecere/gfx/OpenGL: Fixes for basic 2D and 3D support without VBOs
- Tested with OpenGL 1.1 (GDI software driver)

7 years agoecere/gfx/drivers/OpenGL: Fixed LockArraysEXT warnings on Linux
Jerome St-Louis [Fri, 22 Jan 2016 21:44:07 +0000 (06:44 +0900)]
ecere/gfx/drivers/OpenGL: Fixed LockArraysEXT warnings on Linux

7 years agoecere/gfx/OpenGL: Initial WebGL Support
Jerome St-Louis [Sat, 10 Oct 2015 02:25:20 +0000 (22:25 -0400)]
ecere/gfx/OpenGL: Initial WebGL Support

7 years agoecere/gfx/gl3/shading: Integration support to set material
Jerome St-Louis [Sat, 19 Dec 2015 21:09:25 +0000 (16:09 -0500)]
ecere/gfx/gl3/shading: Integration support to set material

7 years agoecere/gfx/OpenGLDisplayDriver: Falling back to a 2.0 context if 4.4 failed
Jerome St-Louis [Sat, 21 Nov 2015 19:25:41 +0000 (14:25 -0500)]
ecere/gfx/OpenGLDisplayDriver: Falling back to a 2.0 context if 4.4 failed

7 years agoecere/gfx/drivers/OpenGL: Regular GL context if SHADERS is not defined
Jerome St-Louis [Thu, 10 Dec 2015 01:15:07 +0000 (20:15 -0500)]
ecere/gfx/drivers/OpenGL: Regular GL context if SHADERS is not defined
- Diagnostic messages

7 years agoecere/gfx/drivers/OpenGL: Exponential fog support in vertex shader
Jerome St-Louis [Fri, 25 Sep 2015 15:55:26 +0000 (11:55 -0400)]
ecere/gfx/drivers/OpenGL: Exponential fog support in vertex shader
- Also tweak to disable color array on unsetting camera to fix colors blending in shaders mode

7 years agoecere/ecere.epj: Including GL3 files in StaticGLES config
Jerome St-Louis [Wed, 23 Sep 2015 17:55:59 +0000 (13:55 -0400)]
ecere/ecere.epj: Including GL3 files in StaticGLES config

7 years agoecere: Fixes to build branch for Android
Jerome St-Louis [Sun, 20 Sep 2015 15:30:58 +0000 (00:30 +0900)]
ecere: Fixes to build branch for Android
- Enabling SHADERS

7 years agoecere/Makefile: Added new gl3/ files; Fixes to run shaders on Linux
Jerome St-Louis [Mon, 14 Sep 2015 06:08:55 +0000 (02:08 -0400)]
ecere/Makefile: Added new gl3/ files; Fixes to run shaders on Linux
- Enabled SHADERS by default in this branch

7 years agoecere/gfx/drivers/OpenGL: Fixed two-sided lighting
Jerome St-Louis [Fri, 11 Sep 2015 14:21:03 +0000 (23:21 +0900)]
ecere/gfx/drivers/OpenGL: Fixed two-sided lighting
- Proper calculations checking gl_FrontFacing in the fragment shader
- No need to save compute a separate light, just negate normal
- Including specular higlights for back face as well

7 years agoecere/gfx/drivers/OpenGL: Added GLSetupLighting API
Jerome St-Louis [Wed, 9 Sep 2015 04:44:57 +0000 (12:44 +0800)]
ecere/gfx/drivers/OpenGL: Added GLSetupLighting API

7 years agoecere/gfx/drivers/OpenGL: Materials & Light colors support
Jerome St-Louis [Tue, 8 Sep 2015 22:05:56 +0000 (06:05 +0800)]
ecere/gfx/drivers/OpenGL: Materials & Light colors support

7 years agoecere/gfx/drivers: Diffuse and global ambient shading support
Jerome St-Louis [Tue, 8 Sep 2015 21:00:20 +0000 (05:00 +0800)]
ecere/gfx/drivers: Diffuse and global ambient shading support

7 years agoecere/gfx/drivers/OpenGL: Fixed broken alpha blending display broken by shaders integ...
Jerome St-Louis [Fri, 29 Apr 2016 15:13:18 +0000 (11:13 -0400)]
ecere/gfx/drivers/OpenGL: Fixed broken alpha blending display broken by shaders integration

7 years agoecere/gfx/drivers/OpenGL: Shaders support improvements
Jerome St-Louis [Tue, 8 Sep 2015 11:38:27 +0000 (19:38 +0800)]
ecere/gfx/drivers/OpenGL: Shaders support improvements
- Fixed 3D issues (including incomplete Matrix multiplication biting again)
- Added texture_matrix and texturingOn uniforms
- Fixed color on no texturing
- Removed deprecated lighting & material calls when SHADERS is defined
- Added Shaders to drivers/gl3 in project in addition to res/shaders/
   (Allows linking project with F7 while they're the active editor)

7 years agoecere/gfx/gl3/gl_compat_4_4: Handling GL < 3.0 (no glGetStringi())
Jerome St-Louis [Sat, 16 Jan 2016 07:37:17 +0000 (02:37 -0500)]
ecere/gfx/gl3/gl_compat_4_4: Handling GL < 3.0 (no glGetStringi())
- Printing an error when ogl_LoadFunctions() fails
- Note: This was only done in gl_compat_4_4.c, not 3_3

7 years agoecere/gfx/drivers/OpenGL: Shaders migration -- Initial Take
Jerome St-Louis [Tue, 8 Sep 2015 07:02:26 +0000 (15:02 +0800)]
ecere/gfx/drivers/OpenGL: Shaders migration -- Initial Take
- Modularized compatibility wrappers, moved out of OpenGLDisplayDriver.ec
   - gl3/immediate.ec: Immediate mode transition kit (glimtk*)
   - gl3/matrixStack.ec: Matrix Stack (glms*)
- gl3/glab.ec: Modularized out Array Buffer manipulation code
- gl3/wglDefs.h: Moved out WGL definitions
- gl3/egl.ec: Moved out EGL code (untested)
- gl3/shading.ec: Vertex/Fragment Shaders loading code and uniforms access (may also be adding materials/shading/lighting code here)
- OpenGLDisplayDriver: Now using extensions through glLoadGen generated modules (gl3/gl_compat_4_4.c or gl3/gl_core_3_3.c)
- OpenGLDisplayDriver (WIN32): Added code to specify profile and debug context with wglCreateContextAttribsARB()
- OpenGLDisplayDriver: Making use of glDebugMessageCallback() / GL_DEBUG_OUTPUT_SYNCHRONOUS to facilitate debugging
- gl3/fixed.frag: Fixed Pipeline Equivalent Fragment Shader (early start: texturing and color support)
- gl3/fixed.vertex: Fixed Pipeline Equivalent Vertex Shader (early start: vertex, color, normal and texture coord)

7 years agoecere/gfx/drivers/OpenGL: Work on Emscripten Support
Jerome St-Louis [Mon, 21 Dec 2015 21:38:44 +0000 (16:38 -0500)]
ecere/gfx/drivers/OpenGL: Work on Emscripten Support

7 years agoecere/gfx/drivers/OpenGL: Setting MAX_ANISOTROPY_EXT to 16.0
Jerome St-Louis [Fri, 26 Jun 2015 23:34:38 +0000 (19:34 -0400)]
ecere/gfx/drivers/OpenGL: Setting MAX_ANISOTROPY_EXT to 16.0

7 years agoecere/ecere.epj: Turning on MMX/SSE optimizations for Release config
Jerome St-Louis [Sun, 10 Apr 2016 06:08:47 +0000 (02:08 -0400)]
ecere/ecere.epj: Turning on MMX/SSE optimizations for Release config
- Leaving line numbers alone

7 years agoecere/com/instance: Added code to fill freed memory in non memguard config
Jerome St-Louis [Sun, 10 Apr 2016 06:10:33 +0000 (02:10 -0400)]
ecere/com/instance: Added code to fill freed memory in non memguard config
- Turned on for Debug mode for now

7 years agoecere/gfx/fontRendering: Improved vertical alignment of text
Jerome St-Louis [Fri, 15 Jul 2016 05:03:27 +0000 (01:03 -0400)]
ecere/gfx/fontRendering: Improved vertical alignment of text
- Text is now more spaced out from the specified y position and better centered within height returned by TextExtent
- '(' and text are now better aligned in Consolas font

7 years agoecere/gfx: Font outline support
Jerome St-Louis [Sun, 3 Jul 2016 00:18:10 +0000 (20:18 -0400)]
ecere/gfx: Font outline support

7 years agocompiler: Fixes to improve compatibility with MinGW/GCC 5 headers
Jerome St-Louis [Sun, 6 Mar 2016 00:30:11 +0000 (19:30 -0500)]
compiler: Fixes to improve compatibility with MinGW/GCC 5 headers
- Added __int128
- Fixed TokenType::_while typo
- Handling type of __attribute__((__vector_size(..))
- ecere/gui/Window: Fixed divide by 0 in window tiling code parsing code

7 years agoecere/gfx/fontManagement: Falling back to Arial Unicode MS on Windows
Jerome St-Louis [Mon, 11 Jul 2016 04:39:08 +0000 (00:39 -0400)]
ecere/gfx/fontManagement: Falling back to Arial Unicode MS on Windows
- Fixes international text not showing up with OpenGL driver

7 years agoecere/gui/controls/EditBox: Fixed remaining issue with selection, tabs and freecaret
Jerome St-Louis [Fri, 15 Jul 2016 04:47:35 +0000 (00:47 -0400)]
ecere/gui/controls/EditBox: Fixed remaining issue with selection, tabs and freecaret

7 years agoecere/gfx/drivers/LFB; gui/EditBox: Splitting Font Rendering & Management; Italic...
Jerome St-Louis [Sat, 23 May 2015 06:49:37 +0000 (02:49 -0400)]
ecere/gfx/drivers/LFB; gui/EditBox: Splitting Font Rendering & Management; Italic Extents Fixes
- FontConfig/Windows font lookup and linking moved to fontManagement.ec
- Text rendering with FreeType and HarfBuzz moved to fontRendering.ec
- Fixed extent of italic fonts
- EditBox: Drawing selection background once for entire line
- Fixed compilation with ECERE_STATIC, no _GLES
- Fixed crashes on null FontEntry, triggered by character 0x80

7 years agoecere/ecere.epj: Excluding things from StaticGLES Config
Jerome St-Louis [Thu, 10 Dec 2015 01:18:11 +0000 (20:18 -0500)]
ecere/ecere.epj: Excluding things from StaticGLES Config
- SSE3 optimizations

7 years agocompiler/libec/grammar: Fixed null pointer crash
Jerome St-Louis [Fri, 24 Jun 2016 22:32:02 +0000 (18:32 -0400)]
compiler/libec/grammar: Fixed null pointer crash

7 years agoecere/com/containers: Sort() method
Jerome St-Louis [Fri, 24 Jun 2016 04:49:58 +0000 (00:49 -0400)]
ecere/com/containers: Sort() method
- Takes a bool ascending parameter
- Default Merge Sort algorithm in Container base class
- Overriding with Quick Sort invocation in Array
- Using sort_r() method from Isaac Turner nicely wrapping qsort_r, qsort_s and a fallback Quick Sort implementation
- Non-integer indexed classes (e.g. (Custom)AVLTree, Map) do not require sorting
- June 23rd, 2016 eC Meetup Ottawa
- LinkList and List Sort() optimizations
- Array Sort optimizations:
   - OnCompare called directly from qsort*() when possible
   - Moved branching outside qsort*() calls
   - Faster & Better fall-back algorithm by Darel Rex Finley
   - Made qsortr() and qsortrx() public
- Container: Pre-allocation optimization in base Container

7 years agoecere/gui/Window: Fix for clickThrough with MouseOver / MouseLeave.
Jerome St-Louis [Wed, 1 Jun 2016 03:54:21 +0000 (23:54 -0400)]
ecere/gui/Window: Fix for clickThrough with MouseOver / MouseLeave.

7 years agoecere/gui/ToolTip: Prevent tooltips from coming up while holding down RepButton
Jerome St-Louis [Thu, 5 May 2016 20:33:26 +0000 (16:33 -0400)]
ecere/gui/ToolTip: Prevent tooltips from coming up while holding down RepButton

7 years agoecere/gui/drivers/X: Fixed handling of SelectionRequest
Jerome St-Louis [Wed, 11 May 2016 04:05:18 +0000 (13:05 +0900)]
ecere/gui/drivers/X: Fixed handling of SelectionRequest
- Multiplication by sizeof(Atom) was unnecessary and causing reading passed allocated memory

7 years agoecere/gui/drivers/X: Fixed key pad 5 with NumLock Off and . with NumLock on
Jerome St-Louis [Wed, 11 May 2016 04:01:02 +0000 (13:01 +0900)]
ecere/gui/drivers/X: Fixed key pad 5 with NumLock Off and . with NumLock on

7 years agoecere/com: Fixed sprintf/snprintf confusion; Support for setting argc/argc later on
Jerome St-Louis [Wed, 1 Jun 2016 04:14:15 +0000 (00:14 -0400)]
ecere/com: Fixed sprintf/snprintf confusion; Support for setting argc/argc later on

7 years agoecere/com/Unicode: Support for CP-1252 in ISO8859_1toUTF8()
Jerome St-Louis [Mon, 9 May 2016 00:31:40 +0000 (20:31 -0400)]
ecere/com/Unicode: Support for CP-1252 in ISO8859_1toUTF8()
- Windows code page 1252 is a superset of ISO-8859-1

7 years agoecere/gfx/3D/meshes: Fixes for Object classes
Jerome St-Louis [Sat, 16 Jan 2016 07:01:05 +0000 (02:01 -0500)]
ecere/gfx/3D/meshes: Fixes for Object classes
- class / class:struct confusion with indirect import through "Display",
  importing "Object" directly

7 years agoecere/sys/JSON: Fixed leak with color strings
Jerome St-Louis [Thu, 21 Apr 2016 08:14:14 +0000 (04:14 -0400)]
ecere/sys/JSON: Fixed leak with color strings

7 years agoecere/gfx/drivers/Win32BitmapPrinter: Fixed warnings
Jerome St-Louis [Fri, 29 Apr 2016 15:53:24 +0000 (11:53 -0400)]
ecere/gfx/drivers/Win32BitmapPrinter: Fixed warnings

7 years agoecere/gfx/3D/Object3DS: Enums for chunks and bit classes for flags
Jerome St-Louis [Fri, 22 Jan 2016 21:14:03 +0000 (16:14 -0500)]
ecere/gfx/3D/Object3DS: Enums for chunks and bit classes for flags

7 years agoecere/gfx/3D/Object: Fixed missing mesh flags checks in Merge()
Jerome St-Louis [Fri, 22 Jan 2016 21:13:19 +0000 (16:13 -0500)]
ecere/gfx/3D/Object: Fixed missing mesh flags checks in Merge()

7 years agoecere/gfx/3D/Object: Replacing public data members by properties
Jerome St-Louis [Fri, 22 Jan 2016 21:09:21 +0000 (16:09 -0500)]
ecere/gfx/3D/Object: Replacing public data members by properties
- There are issues with cross-bitness compiling and private data members access

7 years agoecere/gfx/3D: Camera integration support
Jerome St-Louis [Sat, 19 Dec 2015 21:05:59 +0000 (16:05 -0500)]
ecere/gfx/3D: Camera integration support
- For integrating with Display::DrawMesh() / Display::DrawTranslucency()
- Directly setting viewMatrix and cPosition
- Not recomputing the camera when SetCamera is called with a null surface

7 years agoecere/gui/Window: Disabling native decorations when setting 'alphaBlend' to true
Jerome St-Louis [Fri, 15 Jul 2016 04:54:08 +0000 (00:54 -0400)]
ecere/gui/Window: Disabling native decorations when setting 'alphaBlend' to true

7 years agoecere/gui/Window: (#789) 2. Added a way to grab entire desktop including task bar
Jerome St-Louis [Fri, 15 Jul 2016 04:50:01 +0000 (00:50 -0400)]
ecere/gui/Window: (#789) 2. Added a way to grab entire desktop including task bar
- Call desktop.Grab() with last parameter (decorations) true

7 years agoecere/gui/Window: (#789) Fixed snapshot extent using native decorations
Jerome St-Louis [Thu, 28 Jan 2016 13:48:33 +0000 (08:48 -0500)]
ecere/gui/Window: (#789) Fixed snapshot extent using native decorations

7 years agoecere/com/containers/CustomAVLTree: Freeing Keys (e.g. for AVLTree)
Jerome St-Louis [Thu, 28 Jul 2016 21:31:01 +0000 (17:31 -0400)]
ecere/com/containers/CustomAVLTree: Freeing Keys (e.g. for AVLTree)

7 years agoecere/com/Containers/Array: Performance tweak
Jerome St-Louis [Thu, 28 Apr 2016 20:02:53 +0000 (16:02 -0400)]
ecere/com/Containers/Array: Performance tweak
- No longer invoking the String/Class conversion here
- OnUnserialize is not used for libec parsing

7 years agoecere/com/dataTypes: OnGetString() - Not escaping or quoting strings except for gener...
Jerome St-Louis [Tue, 26 Apr 2016 02:31:51 +0000 (22:31 -0400)]
ecere/com/dataTypes: OnGetString() - Not escaping or quoting strings except for generating eC code
- *needClass should be true when required

7 years agoecere/com/CustomAVLTree: Some optimizations for common int64 case
Jerome St-Louis [Mon, 25 Apr 2016 11:50:20 +0000 (07:50 -0400)]
ecere/com/CustomAVLTree: Some optimizations for common int64 case

7 years agoecere/com/instance: Fixed _strto(u)i64() - *endPtr wasn't always set
Jerome St-Louis [Sun, 24 Apr 2016 02:51:06 +0000 (22:51 -0400)]
ecere/com/instance: Fixed _strto(u)i64() - *endPtr wasn't always set
- This was causing issues parsing TextAlignment enumeration types from JSON

7 years agocompiler/libec: Fixed crash with define and anonymous instantiation
Jerome St-Louis [Sat, 23 Apr 2016 01:16:24 +0000 (21:16 -0400)]
compiler/libec: Fixed crash with define and anonymous instantiation

7 years agoecere/gui/controls/TabControl: Resetting tabs 'checked' when added back
Jerome St-Louis [Fri, 22 Apr 2016 11:02:57 +0000 (07:02 -0400)]
ecere/gui/controls/TabControl: Resetting tabs 'checked' when added back
- Was having multiple tabs to be highlighted at once

7 years agoecere/com/instance.ec: Fixed long standing leaks in templates
Jerome St-Louis [Thu, 21 Apr 2016 07:13:46 +0000 (03:13 -0400)]
ecere/com/instance.ec: Fixed long standing leaks in templates
- The one significant change is adding FreeTemplatesDerivatives(template) in FreeTemplate()
- Updated bootstrap

7 years agocompiler/libec: Fixed bad casts causing warnings on classes derived from Array
Jerome St-Louis [Wed, 20 Apr 2016 21:48:32 +0000 (17:48 -0400)]
compiler/libec: Fixed bad casts causing warnings on classes derived from Array

7 years agoecere/gui/Window: Silencing silly uninitialized GCC warnings
Jerome St-Louis [Wed, 20 Apr 2016 10:03:38 +0000 (06:03 -0400)]
ecere/gui/Window: Silencing silly uninitialized GCC warnings

7 years agoeda/eda.epj: Linker paths including $(ARCH_SUFFIX)
Jerome St-Louis [Wed, 20 Apr 2016 09:51:35 +0000 (05:51 -0400)]
eda/eda.epj: Linker paths including $(ARCH_SUFFIX)

7 years agoecere/gui/dialogs/FileDialog: (#845) Fixed Select Directory dialog intuitiveness...
Jerome St-Louis [Sat, 16 Apr 2016 08:34:14 +0000 (04:34 -0400)]
ecere/gui/dialogs/FileDialog: (#845) Fixed Select Directory dialog intuitiveness issue
- "Select Here" option when nothing is selected

7 years agoextras/GuiConfigData: Fixes and simplification
Jerome St-Louis [Sat, 16 Apr 2016 08:32:21 +0000 (04:32 -0400)]
extras/GuiConfigData: Fixes and simplification
- Should eventually be changed to a WindowController so we don't step on the Window inheritance

7 years agoEDA/Id: Fixed stringification as numbers
Jerome St-Louis [Tue, 12 Apr 2016 19:32:18 +0000 (15:32 -0400)]
EDA/Id: Fixed stringification as numbers

7 years agocompiler/libec: Fixed crash overriding OnRedraw() in a WindowController
Jerome St-Louis [Sun, 10 Apr 2016 07:48:58 +0000 (03:48 -0400)]
compiler/libec: Fixed crash overriding OnRedraw() in a WindowController

7 years agoecere/com/dataTypes: Avoid infinite recursion on bit classes holding themselves
Jerome St-Louis [Sun, 10 Apr 2016 06:17:13 +0000 (02:17 -0400)]
ecere/com/dataTypes: Avoid infinite recursion on bit classes holding themselves

7 years agoecere/com/instance.ec: Prevent IDE crashes in instance.ec
Jerome St-Louis [Sun, 10 Apr 2016 06:11:07 +0000 (02:11 -0400)]
ecere/com/instance.ec: Prevent IDE crashes in instance.ec

7 years agoecere/com/instance.ec: Simpler code in BlockPool::Remove()
Jerome St-Louis [Sun, 10 Apr 2016 06:09:49 +0000 (02:09 -0400)]
ecere/com/instance.ec: Simpler code in BlockPool::Remove()

7 years agoecere/gui/Win32: Allow windows bigger than desktop
Jerome St-Louis [Mon, 29 Feb 2016 00:32:26 +0000 (19:32 -0500)]
ecere/gui/Win32: Allow windows bigger than desktop
- SWP_NOSENDCHANGING flag
- This is required for slides generator with desktop smaller than size resolution

7 years agoecere/gfx/DisplaySystem: Fixed constness of SetPrintingDocumentName()
Jerome St-Louis [Thu, 28 Jan 2016 13:47:10 +0000 (08:47 -0500)]
ecere/gfx/DisplaySystem: Fixed constness of SetPrintingDocumentName()