Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/dropshadow Modified Files: e_mod_config.c Log Message: Removed unused Cfg_File struct. Some formatting =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/dropshadow/e_mod_config.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- e_mod_config.c 6 Mar 2006 00:07:56 -0000 1.9 +++ e_mod_config.c 18 Mar 2006 16:44:52 -0000 1.10 @@ -3,8 +3,6 @@ #include "e_mod_config.h" #include "config.h" -typedef struct _Cfg_File_Data Cfg_File_Data; - struct _E_Config_Dialog_Data { int quality; @@ -14,12 +12,6 @@ double shadow_darkness; }; -struct _Cfg_File_Data -{ - E_Config_Dialog *cfd; - char *file; -}; - /* Protos */ static void *_create_data(E_Config_Dialog *cfd); static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); @@ -50,47 +42,27 @@ cfdata->blur_size = ds->conf->blur_size; cfdata->shadow_x = ds->conf->shadow_x; if (cfdata->shadow_x >= 32) - { - cfdata->shadow_x = 32; - } + cfdata->shadow_x = 32; else if ((cfdata->shadow_x < 32) && (cfdata->shadow_x >= 16)) - { - cfdata->shadow_x = 16; - } + cfdata->shadow_x = 16; else if ((cfdata->shadow_x < 16) && (cfdata->shadow_x >= 8)) - { - cfdata->shadow_x = 8; - } + cfdata->shadow_x = 8; else if ((cfdata->shadow_x < 8) && (cfdata->shadow_x >= 4)) - { - cfdata->shadow_x = 4; - } + cfdata->shadow_x = 4; else if ((cfdata->shadow_x < 4) && (cfdata->shadow_x >= 2)) - { - cfdata->shadow_x = 2; - } + cfdata->shadow_x = 2; else if ((cfdata->shadow_x < 2) && (cfdata->shadow_x >= 0)) - { - cfdata->shadow_x = 0; - } + cfdata->shadow_x = 0; cfdata->shadow_darkness = ds->conf->shadow_darkness; if (cfdata->shadow_darkness == 1.0) - { - cfdata->darkness = 0; - } + cfdata->darkness = 0; else if (cfdata->shadow_darkness == 0.75) - { - cfdata->darkness = 1; - } + cfdata->darkness = 1; else if (cfdata->shadow_darkness == 0.5) - { - cfdata->darkness = 2; - } + cfdata->darkness = 2; else if (cfdata->shadow_darkness == 0.25) - { - cfdata->darkness = 3; - } + cfdata->darkness = 3; } static void * ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs