sclint hashval = hash_string(image_path);
/*for(std::list<ImageCache>::iterator iter = g_ImageCache.begin();
bFound && iter != g_ImageCache.end();std::advance(iter, 1)) {*/
- for (sclint loop = 0;loop < g_ImageCache.size() && !bFound;loop++) {
+ for (sclint loop = 0;loop < (sclint)g_ImageCache.size() && !bFound;loop++) {
if (
/* (*iter).used &&
window == (*iter).window &&
//g_ImageCache.insert(g_ImageCache.end(), cache);
sclboolean bInserted = FALSE;
- for (sclint loop = 0;loop < g_ImageCache.size() && !bInserted;loop++) {
+ for (sclint loop = 0;loop < (sclint)g_ImageCache.size() && !bInserted;loop++) {
if (!g_ImageCache[loop].used) {
g_ImageCache[loop] = cache;
}
sclint org_posy = pos_y;
/*for(std::list<TextCache>::iterator iter = g_TextCache.begin();
bFound && iter != g_TextCache.end();std::advance(iter, 1)) {*/
- for (sclint loop = 0;loop < g_TextCache.size() && !bFound;loop++) {
+ for (sclint loop = 0;loop < (sclint)g_TextCache.size() && !bFound;loop++) {
if (
/*
(*iter).used &&
//g_TextCache.insert(g_TextCache.end(), cache);
sclboolean bInserted = FALSE;
- for (sclint loop = 0;loop < g_TextCache.size() && !bInserted;loop++) {
+ for (sclint loop = 0;loop < (sclint)g_TextCache.size() && !bInserted;loop++) {
if (!g_TextCache[loop].used) {
g_TextCache[loop] = cache;
}
/* Still an experimental feature.. Will be refined after being stabilized */
//#define TEST_NEWBACKEND
#ifdef TEST_NEWBACKEND
+using namespace scl;
+
#include <Ecore_Evas.h>
#include <Ecore.h>
+
typedef struct {
sclboolean used;
evas_textblock_style_free(st);
}
#ifdef TEST_NEWBACKEND
- for (sclint loop = 0;loop < g_TextCache.size();loop++) {
+ for (sclint loop = 0;loop < (sclint)g_TextCache.size();loop++) {
if (g_TextCache[loop].text == object->object) {
g_TextCache[loop].used = FALSE;
}
#endif
} else if (object->type == EFLOBJECT_IMAGE) {
#ifdef TEST_NEWBACKEND
- for (sclint loop = 0;loop < g_ImageCache.size();loop++) {
+ for (sclint loop = 0;loop < (sclint)g_ImageCache.size();loop++) {
if (g_ImageCache[loop].image == object->object) {
g_ImageCache[loop].used = FALSE;
}
if (window == windows->get_magnifier_window() || window == windows->get_dim_window()) {
if (window_context) {
if (window_context->etc_info) {
+#ifdef TEST_NEWBACKEND
+#else
Eina_List *list = (Eina_List*)(window_context->etc_info);
Eina_List *iter = NULL;
Eina_List *iter_next = NULL;
void *data = NULL;
int iIndex = 0;
-#ifdef TEST_NEWBACKEND
-#else
EINA_LIST_FOREACH_SAFE(list, iter, iter_next, data) {
if (data) {
EFLObject *object = (EFLObject*)(data);
evas_textblock_style_free(st);
}
#ifdef TEST_NEWBACKEND
- for sclint loop = 0;loop < g_TextCache.size();loop++) {
+ for (sclint loop = 0;loop < g_TextCache.size();loop++) {
if (g_TextCache[loop].text == object->object) {
g_TextCache[loop].used = FALSE;
}
SclWindowContext *window_context = windows->get_window_context(win);
if (window_context && win) {
if (window_context->etc_info) {
+#ifdef TEST_NEWBACKEND
+#else
Eina_List *list = (Eina_List*)(window_context->etc_info);
Eina_List *iter = NULL;
Eina_List *iter_next = NULL;
void *data = NULL;
int iIndex = 0;
-#ifdef TEST_NEWBACKEND
-#else
EINA_LIST_FOREACH_SAFE(list, iter, iter_next, data) {
if (data) {
EFLObject *object = (EFLObject*)(data);
}
sclint loop;
- for (loop = 0;loop < g_ImageCache.size();loop++) {
+ for (loop = 0;loop < (sclint)g_ImageCache.size();loop++) {
if (g_ImageCache[loop].image == object->object) {
g_ImageCache[loop].used = FALSE;
}
}
- for (loop = 0;loop < g_TextCache.size();loop++) {
+ for (loop = 0;loop < (sclint)g_TextCache.size();loop++) {
if (g_TextCache[loop].text == object->object) {
g_TextCache[loop].used = FALSE;
}