Commit Graph

3084 Commits

Author SHA1 Message Date
Carsten Haitzler ccfe91cc58 REVERT! hell no. glu is not going to become a dependency. it never
was. you broke gl-es support and didnt link to glu either. it's a
separate lib. no no no no no.



SVN revision: 57558
2011-03-07 19:11:18 +00:00
Mike Blumenkrantz ea5e9b6773 fix weird segv I found when trying opengl mode in comp module on my desktop, waiting for someone to give me the "good job you did it correctly" before I backport since I probably didn't
SVN revision: 57546
2011-03-07 05:41:49 +00:00
Vincent Torri c94650f933 final fix for the static jpeg build on Windows
SVN revision: 57367
2011-02-27 10:31:18 +00:00
Vincent Torri e1f359a127 whitespaces--
SVN revision: 57362
2011-02-27 10:04:19 +00:00
Vincent Torri 62ff67f365 Evas jpeg saver: don't build and fix static build on Windows (jpeg saver does not compile)
SVN revision: 57361
2011-02-27 10:02:59 +00:00
Vincent Torri c4da291c3f Evas: fix static build of *bmp and tga loaders
not sure it needs a changelog entry. If yes, tell.
backport to 1.0 needed for bmp and tga


SVN revision: 57356
2011-02-27 09:19:24 +00:00
Vincent Torri 52b7825237 fix Windows CE compilation
SVN revision: 57308
2011-02-24 19:24:39 +00:00
Tom Hacohen 1078e941fa Evas textblock: Added a workaround for a segfault.
The problem is that we currently do try to split even if we can't.
We should overview things and fix it in a more proper way, but this is
a good enough solution in the meanwhile, because this part will be fixed
soon.

SVN revision: 57301
2011-02-24 15:18:10 +00:00
Tom Hacohen a8f52f4378 Evas textblock: Don't set style if it's the same.
SVN revision: 57296
2011-02-24 08:43:38 +00:00
Tom Hacohen 38bf6ec94c Evas textblock: Stringshare the style text of each style.
SVN revision: 57295
2011-02-24 08:43:34 +00:00
Tom Hacohen 28ee865391 Evas textblock: Fix wrong behavior when updating style.
When updating style we should not clear the utf8 text but we should relayout.
And definitely not reset it.

SVN revision: 57294
2011-02-24 08:43:30 +00:00
Tom Hacohen b890c5397b Evas textblock: Remove a redundant cast.
SVN revision: 57268
2011-02-23 16:50:59 +00:00
Tom Hacohen ef3b7a72f2 Evas textblock: Fix the false-positive strict-aliasing issue with gcc.
Only happens with some versions of gcc. I think it's a false positive
because both of the items are compatible.

SVN revision: 57267
2011-02-23 16:49:31 +00:00
Tom Hacohen 6a5e4338a1 Evas font-engine: Also unref the fs->file (see last commit).
SVN revision: 57262
2011-02-23 11:53:29 +00:00
Tom Hacohen e0deeea0df Evas font-engine: Ref fs->file if we use it.
SVN revision: 57261
2011-02-23 11:50:09 +00:00
Tom Hacohen 0f77f14ccc Evas font-engine: Fixed walking to use ptrs instead of indexes.
I.e walk using a ptr instead of arr[i] all the time. This should make
things faster. Also as part of the change, fixed char_index to be
an offset inside the string object, and not a general offset which was
bad.

SVN revision: 57241
2011-02-22 13:00:02 +00:00
Carsten Haitzler 62062af8b4 * Fixed bug smart calc array where it'd nuke the array when nested
process calls hapen and leave some objects uncalculated, but
          removed from the array and marked as needing a calc thus never
          getting back into the array.
          


SVN revision: 57234
2011-02-22 12:12:37 +00:00
Tom Hacohen 7420939ddb Evas textblock: Fixed setting cursor in evas_textblock_cursor_paragraph_char_last.
On empty paragraphs the cursor position was set to values < 0 which
is bad and caused issues in other places as well.

SVN revision: 57229
2011-02-22 09:31:19 +00:00
Carsten Haitzler a3808761cc fix bug with prev/cur text state access in text obj for utf8 string.
SVN revision: 57201
2011-02-21 06:12:28 +00:00
Mike Frysinger 981da7524b evas: fix building with libpng-1.5
this should work with libpng-1.[245].x; dont know about older versions

SVN revision: 57178
2011-02-20 01:21:33 +00:00
Carsten Haitzler 75dcf25bb9 fix convert to a8. someone fixed this badly. fix right now.
SVN revision: 57163
2011-02-19 15:53:47 +00:00
Carsten Haitzler 905d57b315 fix off by 1!
SVN revision: 57162
2011-02-19 15:48:46 +00:00
Tom Hacohen e1b714f9a9 Evas font: Draw the replacement char whan the glyph can't be found.
SVN revision: 57097
2011-02-16 16:36:16 +00:00
Tom Hacohen bd0695d1b5 Evas encoding: Removed Evas_Encoding and moved to eina_unicode_utf8* instead.
SVN revision: 57096
2011-02-16 16:00:17 +00:00
Tom Hacohen 129a2eb57b Evas encoding: Should be bitwise AND and not logical AND.
SVN revision: 57092
2011-02-16 14:59:36 +00:00
Tom Hacohen 3b7bc65841 Evas encoding: Fixed an issue with the return value of prev_get when at the start.
SVN revision: 57091
2011-02-16 13:17:09 +00:00
Tom Hacohen a01b8fa7ce Evas encoding: Made the utf8 parser more robust.
In now handles more error cases in a more correct way.

SVN revision: 57090
2011-02-16 13:00:50 +00:00
Tom Hacohen 52807e1550 Evas textblock: Fixed possible issue with word/mixed wrapping.
SVN revision: 57089
2011-02-16 13:00:41 +00:00
Tom Hacohen 4f597bf730 Evas textblock: Fixed an issue with item size calculation.
This caused some issues in some cases. Just switch continue with a goto to the end of the loop so we'll be able to calculate the sizes even when we don't need to format the format item.

SVN revision: 57081
2011-02-16 09:43:57 +00:00
Jeonghyun Yun 2c428c4c15 From: Jeonghyun Yun <jh0506.yun@samsung.com>
Subject: Re: [E-devel] [Patch] evas_image_load_bmp small patch

When I tested some bmp files on evas, I found one bmp file is not displayed.
But this bmp file is displayed on windows and linux gimp and etc.
So I checked this bmp file, this file have 208 data per line despite 207
pixel per line!!

I fixed code to skip the data when data is more than width instead of
break. I think this is not bug but evas policy problem.



SVN revision: 57076
2011-02-16 05:44:01 +00:00
Cedric BAIL a7d7ae4360 * evas: prevent early death of stringshare.
SPANK ! SPANK ! SPANK !

	PLEASE USE STRINGSHARE REPLACE EVERY TIME YOU DO
	A STRINGSHARE_DEL FOLLOWED BY A STRINGSHARE_ADD.



SVN revision: 57057
2011-02-15 17:24:55 +00:00
Tom Hacohen 24f943fa3d Evas textblock: Fixed a small calculation in format item's size calculation. Was correct, but too complex, simplified it.
SVN revision: 57056
2011-02-15 16:50:14 +00:00
Tom Hacohen d09431f2a1 Evas textblock: Fixed a bug that caused format item positions to be wrong in some cases.
Just sanitized some of the item coordinates calculation.

SVN revision: 57055
2011-02-15 16:50:07 +00:00
Sebastian Dransfeld bd9d4c5019 Better fix for invalid variable usage.
No point in having to pointers, and fix formatting.

SVN revision: 57037
2011-02-14 20:21:10 +00:00
Tom Hacohen 0229e71b48 Evas textblock: Fixed evas_textblock_cursor_range_geometry_get which didn't work when across multiple paragraphs.
SVN revision: 57027
2011-02-14 16:14:26 +00:00
Tom Hacohen b2bf107e38 Evas textblock: strcpy->strncpy in a place we use a cached len, to be on the safe side.
SVN revision: 57025
2011-02-14 15:02:58 +00:00
Tom Hacohen 2a2f88aa2c Evas font: Fixed wrong condition that may cause an invalid read when using OT.
SVN revision: 57024
2011-02-14 15:02:52 +00:00
Tom Hacohen 5991e80d35 Evas textblock: Fixed compilation error, I don't understand what went wrong in my last two commits, sorry for the spam.
SVN revision: 57023
2011-02-14 14:44:47 +00:00
Tom Hacohen 38dc347fcf Evas textblock: Fix compilation warning, for some reason this wasn't included in the previous patch.
SVN revision: 57022
2011-02-14 14:42:22 +00:00
Tom Hacohen 56f8891073 Evas textblock: Added a mode for setting newline behavior.
Can either be normal, or PS mode which means newline character behaves as a PS.

SVN revision: 57019
2011-02-14 14:17:12 +00:00
ChunEon Park be1bc9ae8c evas/engines - fixed invalid variable usage.
SVN revision: 57017
2011-02-14 13:59:36 +00:00
Tom Hacohen 7cd80bfc23 Evas textblock: Fixed it so there's an Evas_Text_Props field only for text objects.
Saves some memory.

SVN revision: 57016
2011-02-14 13:09:41 +00:00
Tom Hacohen 5b477a6454 Evas textblock: Wrapping - used a less correct approach that appears to be 3 times faster.
SVN revision: 57015
2011-02-14 12:44:38 +00:00
Tom Hacohen 8cadb71e4b Evas textblock: don't force calc utf8 string in evas_textblock_style_set. Only calc it when used.
SVN revision: 57014
2011-02-14 12:44:31 +00:00
Tom Hacohen 11dbc52d0e Evas textblock: Fixed issue with incorrect sizes in textblock, _text_item_update_sizes should be called after merging.
SVN revision: 57012
2011-02-14 10:49:14 +00:00
Tom Hacohen 62f763217e Evas textblock: Use eina_unicode_strndup instead of eina_unicode_strdup beacuse we already have the lentgth.
SVN revision: 57011
2011-02-14 10:49:09 +00:00
Tom Hacohen 3c18adad9c Evas textblock: Replaced all the calls to eina_unicode_strlen with the cached text_len.
This also fixes an issue with ellip_char text pos.

SVN revision: 57010
2011-02-14 10:49:05 +00:00
Tom Hacohen 862b468165 Evas textblock: speeded things up by using the cached text_len
instead of calling eina_unicode_strlen all the time.
Also fixed an issue with size calculation.

SVN revision: 57009
2011-02-14 10:09:27 +00:00
Tom Hacohen 4a3493030c Evas textblock: Used eina_list_append_relative_list instead of eina_list_append_relative
in some places, which obviously made things way faster.

SVN revision: 57008
2011-02-14 09:37:49 +00:00
Mike Blumenkrantz 97f30a8b6d missing semicolon. you never cease to amaze me, edev.
SVN revision: 57004
2011-02-14 05:21:17 +00:00