summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* ecore x - ensure pointer is not outside barriers when settingh for screensHEADmasterCarsten Haitzler (Rasterman)2022-01-201-0/+56
| | | | | | | | it might be possible the pointer is outside the screen areas and perhaps gets caught there, so move the pointer in first before setting up new barriers @fix
* vg_common_svg: Fix when the number of polygon points is oddJunsuChoi2022-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: If the number of points is odd, an overflow occurs in array[i+1]. Test Plan: Test Svg image ``` <svg xmlns="http://www.w3.org/2000/svg" id="svg1" viewBox="0 0 200 200"> <title>Not enough points</title> <desc>Must contain at least 4 points</desc> <polygon id="polygon1" points="20 40 160 40 10" fill="none" stroke="red"/> <!-- image frame --> <rect id="frame" x="1" y="1" width="198" height="198" fill="none" stroke="black"/> </svg> ``` Reviewers: Hermet, raster, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12319
* evas_vg_load_svg: Fix colorstop offset parserJunsuChoi2022-01-122-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Values different from numbers and percentages should be ignored and the default values should be applied (zeros). And set the min and max of the offset value to be 0, 1. Also, this patch make that the offset is not input in the reverse order. Test Plan: Test SVG Image ``` <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <linearGradient id="grad" x1="0" y1="0" x2="1" y2="1"> <stop offset="10%" stop-color="white"/> <stop offset="0.2" stop-color="red"/> <stop offset="30% k" stop-color="blue"/> <stop offset="40%" stop-color="yellow"/> <stop offset="0.5m" stop-color="red"/> <stop offset="0.6 " stop-color="green"/> <stop offset="70%m" stop-color="black"/> <stop offset="80%" stop-color="white"/> </linearGradient> <rect x="20" y="20" width="160" height="160" fill="url(#grad)"/> </svg> ``` Result {F4792365} Reviewers: Hermet, raster, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12318
* evas_vg_load_svg: Add check that stroke-dasharray is "none"JunsuChoi2022-01-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Summary: "none" is the default value of dasharray and can actually be used. Currently using "none" causes a segfault. This patch prevents it. Test Plan: SVG image ``` <svg viewBox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <line x1="0" y1="3" x2="30" y2="3" stroke="black" stroke-dasharray="none" /> </svg> ``` Reviewers: Hermet, raster, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12317
* Efl.Gfx.Path: Remove unnecessary optimization code for small arcJunsuChoi2022-01-121-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This condition(optimization) is not a step suggested by arc implementation. https://www.w3.org/TR/SVG11/implnote.html#ArcCorrectionOutOfRangeRadii (Step2) This code is useful if the arc is too small to represent. However, scaling often occurs in vectors, which can create unnecessary problems. Test Plan: SVG Image ``` <svg viewBox="0 0 50 50" height="50" width="50"> <path d="M32.41,20.49a.41.41,0,1,1-.41-.42A.41.41,0,0,1,32.41,20.49Z" transform="translate(-70, -50) scale(3.3)" fill="#020202"/> </svg> ``` image file {F4792225} result {F4792221} Reviewers: Hermet, raster, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12316
* evas_vg_load_svg: Fix negative attrs lengthJunsuChoi2022-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Summary: After finding no attributes but spaces, attrsLength could be negative. This will cause a segfault in parser functions. So, change the position of attrs_length to prevent this. Test Plan: Example SVG ``` <?xml version="1.0" encoding="UTF-8"?> <svg><g ></g></svg> ``` Reviewers: Hermet, raster, kimcinoo Reviewed By: Hermet Subscribers: #reviewers, cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12314
* ecore input - fix - hopefully - build on freebsd with joystick supportCarsten Haitzler (Rasterman)2022-01-111-6/+4
| | | | | | no eeze there to move the include there and on linux only @fix
* evas_vg_load_svg: Prevent array overflowJunsuChoi2022-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Summary: sz must be less than 20 to append 'carriage return' Test Plan: Example SVG ``` <?xml version="1.0" encoding="UTF-8"?> <svg><aaaaaaaaaaaaaaaaaaaa > </aaaaaaaaaaaaaaaaaaaa></svg> ``` @fix Reviewers: Hermet, raster, kimcinoo Reviewed By: raster Subscribers: cedric, #committers, #reviewers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12313
* efreetd - use putenv for better porting to weird os'sCarsten Haitzler (Rasterman)2022-01-091-6/+20
|
* elm - test - disable 2 negative tests that are failing to failCarsten Haitzler (Rasterman)2022-01-041-6/+7
| | | | | efl ui suite passes now @fix
* elm test - disabble elm mpa focus tes - map widget is disabledCarsten Haitzler (Rasterman)2022-01-041-1/+1
| | | | | ,map is broken - it has been for ages so its been disabled, disable in test.
* elm test - disable excess video tests - gst freezes internallyCarsten Haitzler (Rasterman)2022-01-043-3/+3
| | | | | | | gst seems to multi-init even tho we avoid it or something... when you don't fork check. disable all but 1 video test then. @fix
* elm tests - disable toggle test - changed themeCarsten Haitzler (Rasterman)2022-01-041-5/+7
| | | | | | fix tests to pass @fix
* eet - fix seg when doing unusual things with eet write then readCarsten Haitzler (Rasterman)2022-01-043-7/+27
| | | | | | | | | if you write and read0-back before writign out (non-sensical to do as you would write out in full and close and then open file and read separately) the dictionary will be empty. fill it in these paths. fixes needed resulting from optimizations in 1.26.0 @fix
* edje entry - complete key handling for cut (shft+del)Carsten Haitzler (Rasterman)2021-12-301-2/+9
| | | | | | fixes T8975 @fix
* edje entry - fix past to use shft+ins for paste and no ctlCarsten Haitzler (Rasterman)2021-12-301-2/+2
| | | | | | fix key handling for paste (insert key one) @fix
* Eio: fix functions nameVincent Torri2021-12-291-2/+2
| | | | | | | | | | | | | | | | | | Summary: 2 functions has wrong names, hence link error Test Plan: compilation Reviewers: raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12312 @fix
* remove spaceali-alzyod2021-12-241-1/+1
|
* avif saver: fix test on the returned type of fwrite()Vincent Torri2021-12-161-1/+1
| | | | | | | | | | | | | | Test Plan: save as avif file Reviewers: raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12310
* Make passing data pointer to format_cb possibleMaximilian Lika2021-12-146-7/+160
| | | | | | | | | | | | | | | | | | | | | | | Summary: Hello, For my perl binding it is important that one can pass a data pointer to all callbacks, especially to "Format_Cbs" as in elm_slider_units_format_function_set(), elm_slider_indicator_format_function_set() of elm_progressbar_unit_format_function_set(). Another "problematic" function would be elm_calendar_format_function_set(). Enclosed you find a approach to solve this problem. It would be wonderful, if the Efl-libraries could make data pointers also in format cbs possible... Thanks in advance, Max Reviewers: bowonryu, eagleeye, zmike, cedric, raster Reviewed By: raster Subscribers: raster, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12298
* ecore evas - wl - detect timestamsp too far in the past and complainCarsten Haitzler (Rasterman)2021-12-101-0/+8
| | | | | | | | | | | | this has all sorts of nasty side effects by rewinding time far too much and thus causing timers to expire early and so on - these timestamps are MEANT to be like a frame vsync time... they thus should be like normally 0.02sec or so in the past or less... (0.008s on average) so at 0.1 sec complain and ignore the old timestamp. weston does this and sends us timestmaps 0.33sec in the past ... and its not nice. @fix
* evas - loaders - avif, heif - allow threaded loadingCarsten Haitzler (Rasterman)2021-12-042-2/+2
| | | | | | i see no good reason to not allow these loaders to run in threads. they are isolated and i don't see a reason for the libs called to not be threadsafe.
* ecore - loop time - do not allow setting into the future - not intendedCarsten Haitzler (Rasterman)2021-12-042-32/+28
| | | | | | | | | | | | | setting a loop time timestamp in the future will lead to all sorts of bad things. the idea is it was meant to go back a little in time AFTER some sync/animation etc. event to pretend to be at the time when that event happend (it just took some time ot arrive at the process) and so animation and other timelines all agree to be at this time a little bit in the past. going forwards leads to bad things so disallow it and complain. this fixes weston in a window problems when it sends timestamps in the future from weston... @fix
* Elm_tests: resize windows according to elm scaleVincent Torri2021-12-0493-283/+544
| | | | | | | | | | | | | | Summary: On laptop with 4K display, windows are too small, so resize windows according to elm scale Test Plan: elm_tests Reviewers: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12307
* ecore_thread: Add ecore_thread_name_set API.Alastair Poole2021-12-042-0/+27
| | | | | | | | | | This function can only be successfully called from the given thread. For debugging purposes, it's useful to be able to give a name to an Ecore_Thread. ecore_thread_name_set(Ecore_Thread *thread, const char *name); @feature
* edje lua2: check string ptr before dereferenceTaehyub Kim2021-11-301-5/+8
| | | | | | | | | | | | | | Summary: fix null pointer dereference Reviewers: Hermet, kimcinoo, jsuya, raster Reviewed By: kimcinoo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12309
* eio_mon: separate dir/file concerns.Alastair Poole2021-11-261-5/+9
| | | | As per ecore_file_monitor.
* ecore_file: Monitor file writes (kevent).Alastair Poole2021-11-251-5/+7
| | | | | | Trigger ECORE_FILE_EVENT_MODIFIED on file write. @fix
* elm - spinner - fix entry mysteriously hiding in paleditCarsten Haitzler (Rasterman)2021-11-211-8/+5
| | | | | | | | | some logic ws off in how to hide/show and handle visibility of swallowed entry. fix it - let edje deal with show/hide and dont fight with it and ensure we emit a signal to have entry active when it needs to be visible @fix
* efl ui text - handle edje cc classes for textCarsten Haitzler (Rasterman)2021-11-111-2/+32
|
* Eina: sanitize eina_path output on WindowsVincent Torri2021-11-106-19/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: * remove additional \ character * use only / as path separator Test Plan: compilation and run test program : ``` { elm_app_bin_dir_get(); printf("%s\n", eina_vpath_resolve("(:tmp:)/foo")); printf("%s\n", eina_vpath_resolve("(:home:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.desktop:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.documents:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.downloads:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.music:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.pictures:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.public:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.templates:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.videos:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.data:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.config:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.cache:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.run:)/foo")); printf("%s\n", eina_vpath_resolve("(:usr.tmp:)/foo")); printf("%s\n", eina_vpath_resolve("(:app.dir:)/foo")); printf("%s\n", eina_vpath_resolve("(:app.bin:)/foo")); printf("%s\n", eina_vpath_resolve("(:app.lib:)/foo")); printf("%s\n", eina_vpath_resolve("(:app.data:)/foo")); printf("%s\n", eina_vpath_resolve("(:app.locale:)/foo")); printf("%s\n", eina_vpath_resolve("(:app.config:)/foo")); printf("%s\n", eina_vpath_resolve("(:app.local:)/foo")); printf("%s\n", eina_vpath_resolve("(:app.tmp:)/foo")); } ``` before patch : ``` C:\Documents\msys2\tmp/foo C:\Users\vincent.torri/foo C:\Users\vincent.torri\Desktop/foo C:\Users\vincent.torri\Documents/foo C:\Users\vincent.torri\Downloads/foo C:\Users\vincent.torri\Music/foo C:\Users\vincent.torri\Pictures/foo C:\Users\Public\/foo C:\Users\vincent.torri\AppData\Roaming\Microsoft\Windows\Templates/foo C:\Users\vincent.torri\Videos/foo C:\Users\vincent.torri\AppData\Local\/foo C:\Users\vincent.torri\AppData\Roaming\/foo C:\Users\vincent.torri\AppData\Local\/foo C:\Users\vincent.torri\AppData\Roaming/foo C:\Users\vincent.torri\AppData\Local\Temp/foo C:/Documents/msys2/opt/entice_64/bin/foo C:/Documents/msys2/opt/entice_64/bin/foo C:/Documents/msys2/opt/entice_64/lib/foo C:/Documents/msys2/opt/entice_64/share/foo C:/Documents/msys2/opt/entice_64/share/foo C:\Users\vincent.torri\AppData\Roaming\/entice/foo C:\Users\vincent.torri\AppData\Local\/entice/foo C:\Users\vincent.torri\AppData\Local\Temp/entice/foo ``` after patch ``` C:/Documents/msys2/tmp/foo C:/Users/vincent.torri/foo C:/Users/vincent.torri/Desktop/foo C:/Users/vincent.torri/Documents/foo C:/Users/vincent.torri/Downloads/foo C:/Users/vincent.torri/Music/foo C:/Users/vincent.torri/Pictures/foo C:/Users/Public/foo C:/Users/vincent.torri/AppData/Roaming/Microsoft/Windows/Templates/foo C:/Users/vincent.torri/Videos/foo C:/Users/vincent.torri/AppData/Local/foo C:/Users/vincent.torri/AppData/Roaming/foo C:/Users/vincent.torri/AppData/Local/foo C:/Users/vincent.torri/AppData/Roaming/foo C:/Users/vincent.torri/AppData/Local/Temp/foo C:/Documents/msys2/opt/entice_64/bin/foo C:/Documents/msys2/opt/entice_64/bin/foo C:/Documents/msys2/opt/entice_64/lib/foo C:/Documents/msys2/opt/entice_64/share/foo C:/Documents/msys2/opt/entice_64/share/foo C:/Users/vincent.torri/AppData/Roaming/entice/foo C:/Users/vincent.torri/AppData/Local/entice/foo C:/Users/vincent.torri/AppData/Local/Temp/entice/foo ``` Reviewers: raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12306
* eina vpath - fix trailing extra / after homeCarsten Haitzler (Rasterman)2021-11-071-0/+5
| | | | | | fixes T8965 @fix
* eina vpath - fix public vpath location - docs say say public not pubCarsten Haitzler (Rasterman)2021-11-071-1/+3
| | | | @fix
* efl_canvas_image : remove the animated image limitationTaehyub Kim2021-11-042-4/+1
| | | | | | | | | | | | | | | | Summary: remove FRAME_MAX limitation to play the huge animated image which has more than 1024 frames Test Plan: load gif image which has more than 1024 frames Reviewers: Hermet, kimcinoo Reviewed By: Hermet Subscribers: raster, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12303
* elm - palette - add api to check if palette has a system versionCarsten Haitzler (Rasterman)2021-10-312-0/+12
|
* edje + elm - add new explicit tracking of all cc's used in edj themesCarsten Haitzler (Rasterman)2021-10-319-2/+315
| | | | | | | | | | edje_cc now lists all cc's used in an edj file. edje provides an api to list this. elm now uses this api to expose a list of all cc's used acorss all the theme(s) selected by the user. this will then be used by paledit to produce a nicer gui with a list of available cc's to add etc. and split between basic and extended. @feat
* Evas engines: remove last bits of evas_cserve2Vincent Torri2021-10-262-39/+0
| | | | | | | | | | | | Reviewers: raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12302
* evas - software x11 - remove unused xlib+egl code in sw x11Carsten Haitzler (Rasterman)2021-10-254-354/+1
| | | | this code is unused and just wastest space, compile time etc.
* Evas: remove old xcb code in software_x11 codeVincent Torri2021-10-253-34/+12
| | | | | | | | | | | | Summary: this backend code was for selecting XCB over Xlib. Now XCB is removed, this code is useless Reviewers: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12299
* eet - fix bug I added in optimization patch in unusual code pathCarsten Haitzler (Rasterman)2021-10-251-0/+2
| | | | | fixes bug in d08bb7425552853eba6e1c27a33021741b7cb9b1 in fallback code path.
* eet - optimize eet dictionary buildingCarsten Haitzler (Rasterman)2021-10-234-37/+170
| | | | | | | | | | | | | | | this massively speeds up efreet's icon cache building for huge icon themes... in my nasty test case of some insanely huge icon themes that have like 50,000 - 100,000 files... each - and multiple where the icon cache has to scan all of them and build the cache files... i see a speedup of going from 80 seconds to build down to 15-16 seconds. so over 5 times faster. This builds the dictionary in a temporary eina superfast string hash in ram and then just before writing flattens it out into a regular eet dict format. @opt
* elm theme - final cc work for elm code cc'sCarsten Haitzler (Rasterman)2021-10-181-33/+33
|
* tests: enhance evas_map testShinwoo Kim2021-10-181-1/+67
| | | | | | | | | | Reviewers: raster, Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12296
* tests: add evas_map testShinwoo Kim2021-10-124-0/+65
| | | | | | | | | | Reviewers: raster, Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12295
* exactness: Fix compiler warning of uninitialized variableChristopher Michael2021-10-051-0/+1
| | | | | Compiler is warning us here that ex_img has not been initialized after being malloc'd, so let's initialize it
* evas - loader - rsvg - work around rsvg now returning 0 sized dimsCarsten Haitzler (Rasterman)2021-10-051-12/+26
| | | | | | | also work around rsvg now returning a 0 em/ex values for dimensions too. rsvg 2.52 brought us this fun. @fix
* ecore anim - just for paranoia also cancel the threadCarsten Haitzler (Rasterman)2021-10-031-0/+1
| | | | | we send -1 to say exit to the thread but also cancel thread too with ecore "in case"
* emotion - properly track subtitle mute state and init emotion obj earlyCarsten Haitzler (Rasterman)2021-09-263-10/+16
| | | | | | | fix setting things on an emotion obj early bu initting engine early and also track spu mute flags to set on pipe later @fix
* Ensure we check for the correct minimum rsvg version for ↵Joshua Strobl2021-09-222-2/+7
| | | | | | | | | | | rsvg_handle_get_intrinsic_size_in_pixels In commit cbcf5bc64a90306c82f0eb99ae43b5f52c122f71, newer librsvg APIs were used that are not available in versions between 2.36.0 and 2.50.0, e.g. rsvg_handle_get_intrinsic_size_in_pixels which was included in 2.51.x. This has been resolved by adding a HAVE_SVG_2_51 and using it for both rsvg_handle_get_intrinsic_size_in_pixels and rsvg_handle_render_document, though the later technically landed in 2.46.0. Reviewed-by: Christopher Michael <devilhorns@comcast.net> Differential Revision: https://phab.enlightenment.org/D12293
* eina-test: Fix unchecked return valueChristopher Michael2021-09-211-1/+1
| | | | | | | | | Coverity CID1401015 complains about an unchecked return value here, so let's check that fread actually succeeded (return > 0). Fixes CID1401015 @fix