Lucas De Marchi
5a8a8c9014
Convert (hopefully) all comparisons to NULL
...
Apply badzero.cocci, badnull.coci and badnull2.cocci
This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:
code before patch ||code after patch
===============================================================
return a == NULL; return !a;
return a != NULL; return !!a;
func(a == NULL); func(!a);
func(a != NULL); func(!!a);
b = a == NULL; b = !a;
b = a != NULL; b = !!a;
b = a == NULL ? c : d; b = !a ? c : d;
b = a != NULL ? c : d; b = a ? c : d;
other cases:
a == NULL !a
a != NULL a
SVN revision: 51487
2010-08-21 13:52:25 +00:00
Christopher Michael
f8d86f6d7c
Remove blank line & fix formatting of function params.
...
SVN revision: 51397
2010-08-19 14:41:24 +00:00
Carsten Haitzler
6308b452af
oooh that broke comp - hmm this bears some investigaing. remove eating
...
of show/hide events for ee's
SVN revision: 50982
2010-08-11 05:18:58 +00:00
Carsten Haitzler
18c41d2e78
work around a gl driver bug
...
export ECORE_EVAS_GL_FIRST_MAP_BUG=1
if you end up with blank empty windows when using evas gl engine in them
SVN revision: 50981
2010-08-11 05:12:22 +00:00
Lucas De Marchi
0a4617ae38
FORMATTING
...
* Remove vim modelines:
find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;
* Remove leading blank lines:
find . -name '*.[cxh]' -exec sed -i '/./,$!d'
If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0
SVN revision: 50816
2010-08-04 16:57:32 +00:00
Alexander Kerner
ba10bce434
From: Alexander Kerner <alexander.kerner@googlemail.com>
...
Subject: [E-devel] 8bpp xcb evas engine
Hi all,
I've implemented the 8bpp grayscale evas engine. It is based on the 16bpp
engine. It would be nice if someone could review the code and maybe commit
into svn. The patches against evas and ecore are attached.
SVN revision: 50561
2010-07-28 00:17:40 +00:00
Christopher Michael
e6f4e7be70
Remove useless if statement. Regardless if count is greater than 1, we
...
were still returning the count anyway.
SVN revision: 50369
2010-07-19 18:16:56 +00:00
Christopher Michael
6f110efad1
Remove duplicate if (This is already checked a few lines above, so not
...
needed).
SVN revision: 50272
2010-07-15 20:52:29 +00:00
Christopher Michael
bb651d8eb8
Move Ecore.h (and associated headers) to own dir.
...
SVN revision: 50142
2010-07-09 06:23:19 +00:00
Lucas De Marchi
c7d1c78c46
Finish fixing int => Eina_Bool
...
A buggy standard.h caused some parser errors in the previous committed
patch generated by Coccinelle. This commit find the other places.
SVN revision: 50052
2010-07-06 00:08:52 +00:00
Lucas De Marchi
7051feb04e
Fix callback signatures
...
The change from returning int to Eina_Bool left several call sites with
warnings because they were not updated. Here they are fixed by using
Coccinelle, a tool that allows us to automate tasks like that. This
commit was generated from the following semantic patch:
virtual org
@r1@
identifier fn!=NULL, fn2;
expression E1, E2, E3;
@@
(
ecore_event_handler_add(E1, fn, ...)
|
ecore_event_filter_add(E1, fn, ...)
|
ecore_idler_add(fn, ...)
|
ecore_idle_enterer_add(E1, fn, ...)
|
ecore_idle_enterer_before_add(E1, fn, ...)
|
ecore_idle_exiter_add(E1, fn, ...)
|
ecore_main_fd_handler_add(E1, E2, fn, E3, fn2, ...)
|
ecore_main_win32_handler_add(E1, fn, ...)
|
ecore_timer_add(E1, fn, ...)
|
ecore_timer_loop_add(E1, fn, ...)
|
ecore_animator_add(fn, ...)
|
ecore_poller_add(E1, E2, fn, ...)
)
@r2@
identifier r1.fn;
identifier ret;
typedef Eina_Bool;
position p;
@@
- int
+ Eina_Bool
fn@p(...) {
<...
(
- return 1;
+ return EINA_TRUE;
|
- return 0;
+ return EINA_FALSE;
|
- int
+ Eina_Bool
ret;
...
return <+...ret...+>;
|
return ...;
)
...>
}
@r3@
identifier r1.fn2;
identifier ret;
position p;
@@
- int
+ Eina_Bool
fn2@p(...) {
...
(
- return 1;
+ return EINA_TRUE;
|
- return 0;
+ return EINA_FALSE;
|
- int
+ Eina_Bool
ret;
...
return <+...ret...+>;
|
return ...;
)
...
}
@r4@
identifier r1.fn;
@@
- int
+ Eina_Bool
fn(...);
@r5@
identifier r1.fn2;
@@
- int
+ Eina_Bool
fn2(...);
@script:python depends on org@
p << r2.p;
f << r1.fn;
@@
import sys
msg="WARNING: wrong callback %s! ( %s:%s )" % (f, p[0].file,p[0].line)
print >> sys.stderr, msg
@script:python depends on org@
p << r3.p;
f << r1.fn2;
@@
import sys
msg="WARNING: wrong callback %s! ( %s:%s )" % (f, p[0].file,p[0].line)
print >> sys.stderr, msg
SVN revision: 49985
2010-07-02 01:38:05 +00:00
Brett Nash
bb4c28dbb1
Commit ecore_evas_ecore_evases get
...
Coming soon:
ecore_ecore_evas_evas_get
evas_ecore_ecore_evas_get
get_ecore_evas_ecore_evas_name_gen()
SVN revision: 49983
2010-07-02 00:32:56 +00:00
Vincent Torri
ed3725ddcd
fix returned type of callbacks
...
SVN revision: 49877
2010-06-26 15:35:30 +00:00
Cedric BAIL
fbe9064310
* ecore: Ecore callback really should return Eina_Bool.
...
SVN revision: 49829
2010-06-24 16:15:56 +00:00
Carsten Haitzler
eb4b780754
set magic to none later - and set props to null after freeing each -
...
in case del callbacks on objects access ee.
SVN revision: 49410
2010-06-03 12:33:27 +00:00
Carsten Haitzler
427b678d44
proto wrong. fix.
...
SVN revision: 49298
2010-05-29 13:49:43 +00:00
Carsten Haitzler
17263ea263
add ecore versioning
...
SVN revision: 49271
2010-05-29 06:28:25 +00:00
Carsten Haitzler
eaad0eb095
big patch from Samsung SAIT (Advanced research group) for async multi-frame
...
rendering. to turn on:
1.
configure with --enable-async-render
2.
export EVAS_RENDER_MODE=non-blocking
presto. necessitates some api swizzling (thus the expedite. ecore etc. changes)
the kind of results you get on a desktop:
http://www.rasterman.com/files/evas-async-vs-none.html
SVN revision: 49087
2010-05-21 07:10:45 +00:00
Carsten Haitzler
1ea1a6d3cc
oops typo.
...
SVN revision: 49050
2010-05-20 04:47:53 +00:00
Lukasz Wrzosek
4957dd16fe
From: Lukasz Wrzosek <l.wrzosek@samsung.com>
...
I’ve prepared basic patch to add support for custom malloc/free functions for
buffer management. (with changes to api from raster to addd void *data param
to alloc/free callbacks and naming and ordering changes).
SVN revision: 49044
2010-05-20 03:53:54 +00:00
Christopher Michael
0cad792cb6
Fix typos ;)
...
SVN revision: 48958
2010-05-18 04:13:13 +00:00
Carsten Haitzler
194aa90d0c
handle info_set failures.
...
SVN revision: 48957
2010-05-18 03:50:17 +00:00
Vincent Torri
798e88594f
* fix comment
...
* do consistent test (though it is useless)
SVN revision: 48708
2010-05-09 06:03:46 +00:00
Carsten Haitzler
9c96f2b98e
try right #ifdef
...
SVN revision: 48707
2010-05-09 05:51:10 +00:00
Carsten Haitzler
e2279c66c4
support new gl enigne rotate ability from ecore-evas
...
SVN revision: 48705
2010-05-09 05:15:55 +00:00
Vincent Torri
5f6f8cbc48
fix vc++ compilation
...
SVN revision: 48064
2010-04-17 05:35:13 +00:00
Vincent Torri
c77c8c6cb3
more quartz -> cocoa renaming
...
SVN revision: 47506
2010-03-27 18:28:50 +00:00
Gustavo Sverzut Barbieri
9bf201e26e
add debugs and warnings to ecore_evas_new().
...
Sometimes it might be useful for the tester to detect the engine that
is being used.
SVN revision: 47391
2010-03-23 17:35:22 +00:00
Vincent Torri
43f88cb30d
Second part of the renaming 'quartz' -> 'cocoa'
...
API break. Not really important for now as that port
is in a very bad shape anyway
SVN revision: 47340
2010-03-19 06:57:47 +00:00
Vincent Torri
0b168c9813
First part of the renaming 'quartz' -> 'cocoa'
...
Quartz is the name of the graphic library
Cocoa is the Objective C API to build applications
I can't test this so maybe I have forgotten some
modifications to do. Please report any problem in
that thread
SVN revision: 47339
2010-03-19 06:48:08 +00:00
Carsten Haitzler
bf9b51d12b
only send rend done if syncing.
...
SVN revision: 47288
2010-03-16 12:31:09 +00:00
Carsten Haitzler
07a9e63cb4
missing call if gl enigne not built.
...
SVN revision: 46763
2010-03-02 01:43:45 +00:00
Carsten Haitzler
4d33962b8c
set win to 0 - in case
...
SVN revision: 46684
2010-03-01 12:01:57 +00:00
Carsten Haitzler
2a70e8701c
allow alpha ee windows.
...
SVN revision: 46678
2010-03-01 04:44:36 +00:00
Gustavo Sverzut Barbieri
dba2a95572
warnings--
...
Ecore now goes clean on -Wall -Wextra :-)
SVN revision: 46672
2010-02-28 23:27:47 +00:00
Carsten Haitzler
498dec5154
hmm fix resize before change alpha...
...
SVN revision: 46579
2010-02-27 14:40:10 +00:00
Ulisses Furquim
f316516b1c
Checking init count before actually freeing ecore evases.
...
SVN revision: 46447
2010-02-24 22:48:55 +00:00
Gustavo Sverzut Barbieri
11ca6cc505
Update to new event callback signature.
...
SVN revision: 46207
2010-02-16 13:00:11 +00:00
Carsten Haitzler
4e51efd326
1. if software-x11 not enabled.. still build... but.....
...
2. ecore-txt is a REQUIREMENT FOR ECORE-X! DONT DISABLE!
SVN revision: 46199
2010-02-16 01:27:25 +00:00
Christopher Michael
82ce1b5e7b
Reorganize code a little here to remove duplication. No function changes
...
(and no issues found when tested).
SVN revision: 46184
2010-02-15 07:23:58 +00:00
Carsten Haitzler
830a7c89ee
be more robust when gtl creation fails - return a null ee.
...
SVN revision: 46178
2010-02-15 05:26:42 +00:00
Carsten Haitzler
440f6d0d7b
change gl engine api a little - fixed in ecore-evas and expedite. expose
...
indirect option in ecore-evas with a new opt param for gl engines - will add
more opts over time.
SVN revision: 46177
2010-02-15 05:05:05 +00:00
Carsten Haitzler
302e9054c4
dont return unknown!
...
SVN revision: 46162
2010-02-14 08:15:49 +00:00
이상진
7c9103f3ae
From: 이상진 <lsj119@samsung.com>
...
I am attaching another patches for transparent window.
1. Use RGB Visual.
2. Set destination_alpha in ecore_evas for alpha composite in evas.
3. add Function
- Ecore_Evas_Engine_Func->fn_transparent_set
- ecore_evas_transparent_set , ecore_evas_transparent_get
- elm_win_transparent_set, elm_win_transparent_get
SVN revision: 46106
2010-02-12 05:31:26 +00:00
이상진
fb352ec80f
From: 이상진 <lsj119@samsung.com>
...
Patch for rotate with resize
(fixed formatting a bit)
SVN revision: 46046
2010-02-10 14:35:07 +00:00
Cedric BAIL
58e14477d7
* ecore_evas_x: Fix build without X.
...
SVN revision: 45838
2010-02-03 16:05:25 +00:00
Carsten Haitzler
b63900e442
aaaah. i smell another broken wm out there that only handles wm_delete as the
...
first wm_protocols property. BAD WM! (its not e17 - thats for sure)
SVN revision: 45827
2010-02-03 03:20:22 +00:00
Carsten Haitzler
921587e70b
more work on the sync stuff... looking good now.
...
SVN revision: 45772
2010-02-01 14:13:48 +00:00
Carsten Haitzler
2af8f0e8b5
add some sync stuff.. wil be used soon
...
SVN revision: 45733
2010-01-30 10:42:22 +00:00
xcomputerman
164a8b8142
Add support for OpenGL SDL
...
SVN revision: 45732
2010-01-30 10:23:54 +00:00