Commit Graph

31321 Commits

Author SHA1 Message Date
Carsten Haitzler d1f1af054f emile/ecore-con - remove gnutls support since openssl3 is out
openssl3 should now solve licensing issues with openssl. there is no
good reason to keep gnutls support anymore especially since there just
isn't anyoen who wants to maintain that extra ifdef'd code (and that
code has some gotchas that don't match the full features of openssl
too). so this removed "code cruft" to maintain, complexity and
maintenance work as well as build complexity.
2022-08-12 09:33:17 +01:00
Carsten Haitzler faf9745538 emile - fix deprecated warning and move ssl func
TLSv1_server/client_method -> TLS_server/client_method

openssl is complaining about this. back to clean warning-free build.
2022-08-12 09:02:16 +01:00
Carsten Haitzler d8a05e2662 ecore evas - wl - use loop time for anim tick not compositor timestamp 2022-08-09 09:50:50 +01:00
Dmitri Chudinov ac245ef30b Examples: minor changes 2022-08-01 09:38:52 -07:00
Dmitri Chudinov 0ceda5b7f9 Examples: minor changes 2022-08-01 09:38:52 -07:00
Dmitri Chudinov c73c270b33 Examples: update ecore_audio 2022-08-01 09:38:52 -07:00
Dmitri Chudinov 3474d867aa FIX: A pointer should not be compared to zero 2022-08-01 09:37:37 -07:00
Carsten Haitzler 0e22417f45 eet emile - cipher - add braces for if defines to be clear on order of op 2022-08-01 17:35:52 +01:00
orbea bdd5b244e6 Support LibreSSL 3.5.x
LibreSSL 3.5.x now works with the standard OpenSSL code paths.
2022-07-04 09:08:39 -07:00
Marcel Hollerbach c3d1f19ed8 ecore_evas_x: correctly use offset of the drag window 2022-05-31 21:16:24 +02:00
Marcel Hollerbach af6134aa6c ecore_evas: add API to offset drag position relative to cursor
The values are stored in the ee itself. And it is the responsibility of
the engine to use that value correctly.
2022-05-31 21:15:03 +02:00
Carsten Haitzler 54c6516373 evas psd loader - don't crash on loading non rgb psd's
at least fail gracefully.

@fix
2022-05-22 09:26:32 +01:00
Christopher Michael 0dc787ee6b elementary_test: Fix warning about truncated string
gcc reports output between 7 and 17 bytes into a dest of size 16 so
increase destination size slightly

@fix
2022-05-18 08:27:59 -04:00
Carsten Haitzler 3008e1cd4c evas canvas - init res var to avoid uninit warning
@fix
2022-05-18 13:20:19 +01:00
Carsten Haitzler 712c0d5b0d edje - fix warnings with string buffer lens
@fix
2022-05-18 12:48:47 +01:00
Carsten Haitzler a4a0dc7a75 eldbus - fix warning about buffer being a bit small for string
@fix
2022-05-18 12:16:08 +01:00
Carsten Haitzler b0232b5e1d emile - handle possible invalid compress type more gracefully
check length return is < 0 and handle that.

@fix
2022-05-18 12:16:05 +01:00
Carsten Haitzler f682178017 ecore-x - use current time not vblank timestamp for animator time
sometimes on some systems and drviers time here is not what we
want/expect. it can be in the future. there are reasons so, work
around this and use the timestamp of "now" when we get the event as
opposed to the timestamp given to work around odd weirdnesses and
complaints time went backwards.

@fix
2022-05-17 15:02:20 +01:00
Carsten Haitzler 5f85967da1 evas - textgrid - guard against null/empty glyphs
not sure how someone got to this point - but this should not be null,
so don't crash if it is.

@fix
2022-05-16 18:36:56 +01:00
Carsten Haitzler e9e40eb610 eet - add eet_sync_sync() that syncs data to disk and fdatasyncs it
this ensures that if eet_sync_sync() returns that all data has been
synced to disk (as best possible with fdatasync()).

@feat
2022-05-16 14:02:31 +01:00
Carsten Haitzler 7743b17dba evas - png loader - work around libpng arm bug where rgb > a on decode
on arm when a is 0 ... per pixel rgb can be > 0 which violates premul
rgb leading to junk rendering. this now is worked around in the png
loader and forces rgb to 0 when a is 0 per pixel.

@fix
2022-05-04 18:12:24 +01:00
Carsten Haitzler 9490cf857b evas -jxl - bump version needed because we need neweer than 0.6.1
the jxl loader requires code that is unreleased from jxl (changes made
after 0.6.1 release), thus bump to 0.6.2 to indicate this. will have
to adjust once a newer jxl comes out.
2022-05-01 09:51:36 +01:00
Carsten Haitzler bdbac3ae45 evas - jxl - remove timing debug 2022-04-28 19:15:02 +01:00
Carsten Haitzler d7521c69dd jxl - add actual files ... as i had to get patch manually from phab
missed these... arc broken... sorry
2022-04-28 17:43:39 +01:00
Vincent Torri 01fb3233eb Evas: add jxl loader and saver
add jxl loader and saver to Evas.

Entice for loading, animated jxl files or not some conformances files :
https://github.com/libjxl/conformance/tree/master/testcases
2022-04-28 17:00:40 +01:00
Carsten Haitzler d4ee3a158a eina bt - it seems tab plus space doesnt produce always a space fix
as this is machine-read ... a single space will do and will produce
the right format.

@fix
2022-04-28 16:28:51 +01:00
Carsten Haitzler 6fd2852b14 add urilist support to cnp part of cnp not just dnd
this also makes urilist things work for copy & paste like with dnd.
goers with commit 8d4a2a70cf
2022-04-27 16:02:59 +01:00
Carsten Haitzler 5aa9a59c33 efreet - fix missing use of eina prefix for finding path to efreetd
fixes relocation with eina prefix by using it to launch efreetd

@fix
2022-04-20 19:46:19 +01:00
Carsten Haitzler 1e623d3350 ecore evas - x - dont dfisable dnd if we are listening for drop events
on mouse release/up dont disable xdnd awareness if we're listening for
dnd events still

@fix
2022-04-04 20:58:15 +01:00
Carsten Haitzler 1e19806faf elm - dnd - fix missing out callback when mouse leaves window
@fix
2022-04-04 20:32:16 +01:00
Carsten Haitzler 8d4a2a70cf elm cnp - add uri list so you can sensibly do dnd for a filemanager 2022-04-03 21:11:59 +01:00
Carsten Haitzler d8fe6e9450 evas - handle odd case where smat child is not removed to avoid inf loop
with som refcount fun some o9bjects may not get removed until later
thus causing infinite loops trying to remove comtained objects so
remove anyway in this case to avoid looping forever

@fix
2022-04-03 21:10:25 +01:00
Carsten Haitzler 4ba44bd865 elm - be more robust in the face of null cnp obj and bad app code
someone decided passing a null obj to elm_cnp_selection_set from an app
is a good idea. it's not... but let's not crash 9nside efl if someone
does and instead survive and complain

@fix
2022-03-26 23:07:38 +00:00
Carsten Haitzler da0a6f9ed0 evas - smart obj - set smart data to null after del func to avoid bugs
so smart data get cleanly returns null ... set it to nukll after del
func called as now the smart data shiuld be gone and not usable
anymore. this means we dont return junk smart data if called after this.

@fix
2022-03-26 23:07:38 +00:00
Christopher Michael dc81e925c8 ecore_evas_drm: Remove hardcoded depth & bpp
As we have an ecore_drm2 function to get preferred depth & bpp, we
should be using that so remove hardcoded values and set the
edata->depth & bpp using the ecore_drm2 function
2022-03-25 08:13:33 -04:00
Carsten Haitzler 41dd584789 ecore-x - in order to only handle "new kbds" instead of maps add ev info
als flag in the xkb event to look at in this case. this allows for
fixes in e to not redo kbd layout when xmodmap changes modmap

@feat
2022-03-25 10:45:37 +00:00
Carsten Haitzler 0f6e1c03f0 ecore-x - fix xkb emitted hash handling to del just that serial
don't delete any item with a data of 1 which could be multiple
items.... delete by the serial instead.

also - don't leak the event... this leaks the event as the free func
never freed the event...

@fix
2022-03-25 10:45:37 +00:00
Carsten Haitzler 107b19d427 ecore-x - fix netwm moveresize request to send to the right window
e handles this but other wm's don't ... fic to send to root

@fix
2022-03-08 11:58:00 +00:00
Jaehyun Cho 3756b88cde edje_calc: fix check return of _edje_fetch
Summary: checks if _edje_fetch returns null before calling _edje_recalc_do.

Reviewers: Hermet, raster, kimcinoo, jsuya

Reviewed By: jsuya

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12322
2022-02-24 17:26:36 +09:00
Carsten Haitzler d3a1b077fb edje - improve number of signlas/messages we can do per second
use a 0 timer delay not 0.001s before processing messages thus being
able to handle more especially when they self-feed a bit.

@opt
2022-02-20 11:20:43 +00:00
Christopher Michael e3e5314950 ecore_buffer: Remove duplicate function calls
As we already set these variables at the top of the function, there is
no need to reget the xcb connection or generate the pixmap id.
2022-02-10 09:32:09 -05:00
Carsten Haitzler 5e1023f64b ecore x - ensure pointer is not outside barriers when settingh for screens
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
2022-01-20 12:14:57 +00:00
junsu choi 7b4c9284a9 vg_common_svg: Fix when the number of polygon points is odd
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
2022-01-12 11:35:31 +09:00
junsu choi ef784708b9 evas_vg_load_svg: Fix colorstop offset parser
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
2022-01-12 11:34:29 +09:00
junsu choi 92f77c5123 evas_vg_load_svg: Add check that stroke-dasharray is "none"
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
2022-01-12 11:33:44 +09:00
junsu choi 5ebebe4698 Efl.Gfx.Path: Remove unnecessary optimization code for small arc
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
2022-01-12 11:32:42 +09:00
junsu choi 3411c604f2 evas_vg_load_svg: Fix negative attrs length
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
2022-01-12 11:19:24 +09:00
Carsten Haitzler 7a674c6a29 ecore input - fix - hopefully - build on freebsd with joystick support
no eeze there to move the include there and on linux only

@fix
2022-01-11 11:16:35 +00:00
junsu choi a32373195b evas_vg_load_svg: Prevent array overflow
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
2022-01-11 00:41:41 +00:00
Carsten Haitzler ec80ef2ce4 efreetd - use putenv for better porting to weird os's 2022-01-09 21:14:23 +00:00