summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_draw_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-05-10 06:40:51 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-05-10 06:40:51 +0000
commite2725f4690b77e62ed03ed8e622875bfa03fb860 (patch)
tree99514cef36021a5ccd989f02fab2fae425155003 /legacy/evas/src/lib/engines/common/evas_draw_main.c
parentd6b340b6742672dd04836fb111a38ff947d5550d (diff)
lean down memory usage per process - now it doesnt use up 64kb it doesnt need
to... :) SVN revision: 10153
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_draw_main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_draw_main.c b/legacy/evas/src/lib/engines/common/evas_draw_main.c
index d71da091f4..c27f44e277 100644
--- a/legacy/evas/src/lib/engines/common/evas_draw_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_draw_main.c
@@ -1,5 +1,7 @@
1#include "evas_common.h" 1#include "evas_common.h"
2 2
3extern DATA8 *_evas_pow_lut;
4
3void 5void
4evas_common_draw_init(void) 6evas_common_draw_init(void)
5{ 7{
@@ -565,6 +567,7 @@ evas_common_draw_func_blend_color_get(DATA32 src, RGBA_Image *dst, int pixels)
565 { 567 {
566 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 568 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
567 { 569 {
570 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
568 return evas_common_blend_color_rgba_to_rgba_c; 571 return evas_common_blend_color_rgba_to_rgba_c;
569 } 572 }
570 else 573 else
@@ -585,6 +588,7 @@ evas_common_draw_func_blend_color_get(DATA32 src, RGBA_Image *dst, int pixels)
585 { 588 {
586 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 589 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
587 { 590 {
591 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
588 return evas_common_copy_color_rgb_to_rgba_c; 592 return evas_common_copy_color_rgb_to_rgba_c;
589 } 593 }
590 else 594 else
@@ -619,6 +623,7 @@ evas_common_draw_func_blend_cmod_get(RGBA_Image *src, RGBA_Image *dst, int pixel
619 { 623 {
620 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 624 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
621 { 625 {
626 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
622 return evas_common_blend_pixels_cmod_rgba_to_rgba_c; 627 return evas_common_blend_pixels_cmod_rgba_to_rgba_c;
623 } 628 }
624 else 629 else
@@ -630,6 +635,7 @@ evas_common_draw_func_blend_cmod_get(RGBA_Image *src, RGBA_Image *dst, int pixel
630 { 635 {
631 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 636 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
632 { 637 {
638 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
633 return evas_common_copy_pixels_cmod_rgb_to_rgba_c; 639 return evas_common_copy_pixels_cmod_rgb_to_rgba_c;
634 } 640 }
635 else 641 else
@@ -648,6 +654,7 @@ evas_common_draw_func_blend_mul_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst
648 { 654 {
649 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 655 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
650 { 656 {
657 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
651 return evas_common_blend_pixels_mul_color_rgba_to_rgba_c; 658 return evas_common_blend_pixels_mul_color_rgba_to_rgba_c;
652 } 659 }
653 else 660 else
@@ -668,6 +675,7 @@ evas_common_draw_func_blend_mul_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst
668 { 675 {
669 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 676 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
670 { 677 {
678 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
671 return evas_common_blend_pixels_mul_color_rgba_to_rgba_c; 679 return evas_common_blend_pixels_mul_color_rgba_to_rgba_c;
672 } 680 }
673 else 681 else
@@ -694,6 +702,7 @@ evas_common_draw_func_blend_alpha_get(RGBA_Image *dst)
694{ 702{
695 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 703 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
696 { 704 {
705 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
697 return evas_common_blend_alpha_color_rgba_to_rgba_c; 706 return evas_common_blend_alpha_color_rgba_to_rgba_c;
698 } 707 }
699 else 708 else