Commit Graph

4211 Commits

Author SHA1 Message Date
Cedric BAIL 5f9bdb6120 eina: populate memory in the right limit. 2016-09-19 15:26:06 -07:00
Cedric BAIL 32ecb77191 evas: fix use after free.
Thanks to Thanatermesis for tracking this in T2135.
2015-03-24 23:13:30 +01:00
Carsten Haitzler 3fabf9f952 evas textgrid - fix drawing of codepoints that are 0
this fixes artifacts if you have cells with 0 codepoints and also have
underlines or strikethroughs in them.

@fix
2015-01-07 16:49:08 +01:00
Jean-Philippe Andre 864c137471 Evas fonts: Fix minor deviation in RLE font render
So I've discovered some weird output values after drawing
some text. The destination alpha would become 0xFE even
when the back buffer had a background with 0xFF alpha.

Example:
Dest is 0xff00ff00 (green).
Color is 0xffffffff (white).
Current font alpha is 170 (0xaa).
--> Output was 0xFEaaFEaa instead of 0xFFaaFFaa.

This is because of some slightly invalid calculation
when doing the font masking (mtab[v] = 0x55 above).

Indeed, MUL_256 takes alpha values in the range [1-256]
and not [0-256] as was assumed.
2015-01-06 13:14:08 +01:00
Eduardo Lima (Etrunko) d64e3a27e5 Revert "evas: GL_X11 context need to always be with alpha or it will fail to change."
This reverts commit 12eeebb544.
2014-10-20 11:34:53 -02:00
Eduardo Lima (Etrunko) 4fb4d7c77c Revert "evas_gl_x11: Fix build after lastest break by Cedric"
This reverts commit 5a4ac4e7ca.
2014-10-20 11:34:37 -02:00
Eduardo Lima (Etrunko) 5a4ac4e7ca evas_gl_x11: Fix build after lastest break by Cedric
modules/evas/engines/gl_x11/evas_engine.c: In function 'eng_setup':
modules/evas/engines/gl_x11/evas_engine.c:896:34: error: too many arguments to function 'eng_window_new'
                                  re->info->info.rotation);
                                  ^
In file included from modules/evas/engines/gl_x11/evas_engine.c:2:0:
modules/evas/engines/gl_x11/evas_engine.h:94:21: note: declared here
 Evas_GL_X11_Window *eng_window_new(Display *disp, Window win, int screen,
                     ^
modules/evas/engines/gl_x11/evas_engine.c:960:44: error: too many arguments to function 'eng_window_new'
                                            re->info->info.rotation);
                                            ^
@fix

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2014-10-17 16:11:39 -03:00
Cedric BAIL 12eeebb544 evas: GL_X11 context need to always be with alpha or it will fail to change.
@fix
2014-10-09 12:27:48 +02:00
Julien Isorce 895692f0cd evas: GL_X11 - make sure to re-create the gl context when window visual change
Reviewers: cedric

Subscribers: seoz, capOM, cedric

Differential Revision: https://phab.enlightenment.org/D1229

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-30 16:32:03 +02:00
Cedric BAIL 5c852d1f4e evas: actually just define the right number of events. 2014-09-02 16:04:28 +02:00
Cedric BAIL 807a5aa263 evas: forgotten evas canvas event EVAS_CANVAS_EVENT_DEVICE_CHANGED. 2014-09-02 15:34:57 +02:00
Cedric BAIL b1caa37177 evas: fix evas events order and count.
Before this patch, if you were hooking to any event above
EVAS_OBJECT_EVENT_IMAGE_PRELOADED you will end up receiving another
event instead and be fooled into receiving the right one.

In the mean time I did discover that our table is missing one item, the
equivalent to EVAS_CALLBACK_DEVICE_CHANGED. I don't know how to properly
fix that one for now, so put NULL instead to at least avoid a random
memory access.
2014-09-02 15:34:56 +02:00
Julien Isorce 380756f6fb xlib: fix undefined behaviour when freeing colormap too early
Summary:
On Ubuntu 14.04 it makes a 32 bit depth window un-responsive
to any XEvent.

Reviewers: cedric, raster

Reviewed By: raster

Subscribers: raster, capOM, cedric

Differential Revision: https://phab.enlightenment.org/D1236
2014-08-21 16:02:31 +02:00
Cedric BAIL cf86cf5588 ecore_evas: Ecore_Evas_X - make sure that ecore evas post render is always called.
This fix a case where when doing asynchronous rendering and no update was done,
the post render evas event would never be triggered and so no call to ecore evas
post render callback were made. Now the async X backend follow all other backend
behavior.

@fix
2014-08-21 16:01:37 +02:00
Cedric BAIL 60c3dd385c lz4: fix another security issue on ARM 32bits. 2014-07-14 16:05:16 +02:00
Doug Newgard cb410fc8a6 Evas: Update for giflib 5.1 api change
Summary: Slight change in the file close function.

Reviewers: jpeg

CC: cedric

Differential Revision: https://phab.enlightenment.org/D916
2014-07-04 08:42:52 +02:00
Cedric BAIL 45f526580b lz4: fix possible security issue.
See :
- http://fastcompression.blogspot.fr/2014/06/lets-move-on.html
- http://www.openwall.com/lists/oss-security/2014/06/26/25

@fix
2014-06-30 09:27:51 +02:00
Sebastian Dransfeld f309703d23 efreet: remove code duplication
If the menu starts with either kde- or gnome- the resulting action is
the same.
(cherry picked from commit a10d4167f1)

Signed-off-by: Thanatermesis <thanatermesis@gmail.com>
2014-06-12 15:42:17 +02:00
Sebastian Dransfeld fecdca678c efreet: improve handling of merged menus
If the menu is of the format ${XDG_MENU_PREFIX}applications.menu, we
want to merge applications-merged/, not
${XDG_MENU_PREFIX}applications-merged
(cherry picked from commit 9415f8a7ef)

Signed-off-by: Thanatermesis <thanatermesis@gmail.com>
2014-06-12 15:42:17 +02:00
Sebastian Dransfeld aee73ce086 efreet: Correctly handle default merge dir
When main menu file is gnome-applications.menu or kde-applications.menu,
we should be using applications as base for merged dir.

Part of T1284
(cherry picked from commit ffda8635fe)

Signed-off-by: Thanatermesis <thanatermesis@gmail.com>
2014-06-12 15:42:17 +02:00
Mike Blumenkrantz d59e2b42fa edje should only match swallow visibility if it's actually a group part 2014-05-26 12:24:38 -04:00
zmike c625279a85 recursively hide edje group objects on edje hide
this massively improves edje performance when using groups, which previously would continue calculating their parts even when their parent object was hidden

CPU usage in my test case went from 20-30% to 1%.

@fix
2014-05-26 08:53:56 -04:00
Youngbok Shin 736b02cd22 evas/text: fix abnormal ellipsis logic when harfbuzz is enabled.
Summary:
text_props.len indicates visual length from harfbuzz logic when it is available.
But, input pram "idx" is logical length. So, ellipsis works abnormally in some case.
@fix

Test Plan: D870

Reviewers: tasn, woohyun

CC: cedric, herdsman

Differential Revision: https://phab.enlightenment.org/D871
2014-05-21 10:42:19 +01:00
Youngbok Shin 316b35a0c6 evas/text: add text ellipsis test case for ligatures special case.
Summary:
Some fonts has combination information for "ff".
When harfbuzz is enabled with the font, evas text ellipsis logic can be broken.

Reviewers: tasn, woohyun, cedric

Reviewed By: tasn

CC: cedric, herdsman

Differential Revision: https://phab.enlightenment.org/D870

Some comment/commit message improvements by TAsn.
2014-05-21 10:42:11 +01:00
Shinwoo Kim 4327673072 Win32: Add configuration to cross-compile
Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2014-05-20 17:17:01 +09:00
Jean-Philippe Andre 1a4e40bfdc Win32: Fix ecore_evas engine search path
Engines are stored in a lib/ folder, while the main DLL files
are in the bin/ folder, so the engine would never be found.

A solution was to add the proper checkme file in the share
folder, but since this is necessary only for Windows, we
can simply use ../lib instead of using the full eina_prefix
detector.

Thanks vtorri for the review.
2014-05-20 17:16:57 +09:00
Mike Blumenkrantz d34466c2f3 ecore_x_image_get() should not abort when shm creation fails 2014-05-09 10:42:10 -04:00
Mike Blumenkrantz 8788cac287 ...also when shmat() fails 2014-05-09 10:42:05 -04:00
Mike Blumenkrantz f16bda07b9 ecore-x should print an error when shmget fails 2014-05-09 10:41:59 -04:00
Mike Blumenkrantz ad3b4905b4 fix emotion_test signal emit object
@fix
2014-05-07 13:16:26 -04:00
Mike Blumenkrantz ee1af1e177 eldbus-codegen no longer passes garbage values to error callbacks
@fix
2014-05-04 20:38:05 -04:00
Jaeun Choi 35c9fb8876 Evas: gif decoding bug fix
Gif decoder decodes prior frames sequentially to decode a specific frame.
The last frame of sequential decoding, which is the frame we want to decode,
remains un-decoded until the while loop stops.
The frame count should be incremented after the comparison statement.

This was a @fix (missing tag in master)
cherry picked from commit 96f9353f4c
2014-04-25 16:30:37 +09:00
Mike Blumenkrantz d36f22c384 Revert "edje now correctly forces ellipsis setting on text parts"
This reverts commit d7af4c1ff5.

this is too much of a clusterfuck to put into a stable release.
2014-04-22 20:22:00 -04:00
Mike Blumenkrantz d7af4c1ff5 edje now correctly forces ellipsis setting on text parts
this should always be applied, not just when min_x isn't set; failure to do so causes erroneous ellipsizing in some cases where it should be explicitly prohibited

@fix
2014-04-22 19:19:56 -04:00
Wonguk Jeong 1f363c488e emotion: fix triggering condition of fallback module loading
@fix

Summary:
In emotion_engine_instance_new(), if given module name is wrong or if loding is failed, fallback module loading should be triggered.a (previously, it check just whether name is NULL or not)

In case of T1025, "vlc" was given name. Therefore, fallback was not triggered.

Fixes T1025

Test Plan: enlightenment -> efm -> mouse over multimedia files -> check whether preview is shown properly or not

Reviewers: raster, cedric

CC: seoz, cedric, zmike

Maniphest Tasks: T1025

Differential Revision: https://phab.enlightenment.org/D773
2014-04-20 10:00:20 -04:00
Carsten Haitzler 385176976a fix swap buffers with damage to not detect if ext str is not there
@fix
2014-04-05 22:22:38 +09:00
Carsten Haitzler 99fb2666ab ecore-con - deal with internal buffer growing over 2g in size
@fix this fixes a corner case where you may buffer 2g or more of data
in ecore-con buffers. this leads to a stall. @fix
2014-04-04 19:36:25 +09:00
Jean-Philippe Andre f8fbb5abc2 Evas cserve2: Fix crash in elm_test GLView
This whole cache/cache2 API duplication is a complete mess.

This was a @fix (forgot the tag in master).

(cherry picked from commit 0e1b52875d)
2014-04-04 10:34:13 +09:00
Carsten Haitzler b9480fc7d8 it seems the if 0'd code was wrong and ecore win32 doesnt support nocursor 2014-04-03 19:56:46 +09:00
Carsten Haitzler fef45870b0 ecore-evas - fix object cursor to not delete the same cursor when set
this fixes a misbehavior with ecore evas object cursors when you set
one, the old one is deleted, but if the old is the same, the new one
you set gets deleted, rather than just updated.

@fix

Conflicts:
	src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
2014-04-02 20:45:50 +09:00
ChunEon Park 1918038640 evas - fix incorrect object reset.
If the children are rendered in the proxy render time,
they should not be reset the changes always since we don't sure
they will be rendered in normal rendering after.

In this case, we leave them as they are.
But maybe they can be optimized by comments says.

@fix
2014-04-01 14:12:02 +09:00
Ryuan Choi c2088d8326 edje_cc: Fix the crash when compiled wrong edc file containing empty part
It's regression since cff3ec04b.

@fix (master : c2077f4853)
2014-03-31 22:13:19 +09:00
Stefan Schmidt e59c14eda9 evas/textblock: Correct evas_textblock_text_utf8_to_markup docs
Input and output was documented in the wrong direction.This function
takes plain text and gives markup.
2014-03-27 12:27:47 +01:00
ChunEon Park 90f05a5721 evas/proxy - actually, I missed updating is_active of the object.
this commit is introduced by this b2070f8c39.
2014-03-27 16:18:32 +09:00
ChunEon Park 25391697e6 evas/proxy - redraw proxy source properly.
This patch fixes the proxy drawing problem that source won't be updated in some case

If the image object is the one member of the smart that has the proxy,
the proxy(image part) won't be redrawed properly unless evas tries to draw the image object.
This can be heppend if the image object is inactive cause of some reasone(ie. outside of the screen)
So, the proxy object never can be never updated even the image part is changed.
Now let try to be active if the parent is both active and source object.

and revert previous change with regarded to a739716cee,
that's no more required now.

@fix
2014-03-27 15:52:53 +09:00
Carsten Haitzler 987a83ba96 fixes enlightenment working over non-shm paths.
this technically adds a feature - it adds non-mitshm support for
ecore_x image grabbing, but that fixes a bug. it doesn't touch xcb
support though.

this fixes T1127 andshould probably be backported.
2014-03-26 16:04:10 +09:00
ChunEon Park 0645512fea evas/gl - fill up missed blend mode.
Still there few mode are unsatisfied.

@fix

Conflicts:

	src/modules/evas/engines/gl_common/evas_gl_context.c
2014-03-22 21:13:08 +09:00
Mike Blumenkrantz 6a2eff512f edje_cc uses macros for some of its handler setup
this reduces code size, ensures consistency, and actually fixes bugs where the "filter" keyword was erroneously disallowed in some places

@fix
2014-03-21 22:37:25 -04:00
Jean-Philippe Andre 409319ec9d Evas filters: fix potential memory leak
Unlikely use case trying to delete a source when there are no
sources yet.

@fix (master b027e58a96)
2014-03-21 15:40:56 +09:00
Mike Blumenkrantz 088c16fab1 edje_cc also checks min args correctly for STATE_SET actions
@fix
2014-03-20 19:28:05 -04:00