summaryrefslogtreecommitdiff
path: root/src/modules/dropshadow/e_mod_config.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2006-03-18 16:46:00 +0000
committerChristopher Michael <cpmichael1@comcast.net>2006-03-18 16:46:00 +0000
commit575ac23a71a72a3dade904b818062175da21ef62 (patch)
tree61b2fe8e9f9acf1da1c72d4d45000203493618d1 /src/modules/dropshadow/e_mod_config.c
parent03f97999f3a05aa31548011721fde0f9ebf1cfbd (diff)
downloadenlightenment-575ac23a71a72a3dade904b818062175da21ef62.tar.gz
Removed unused Cfg_File struct. Some formatting
SVN revision: 21377
Diffstat (limited to 'src/modules/dropshadow/e_mod_config.c')
-rw-r--r--src/modules/dropshadow/e_mod_config.c48
1 files changed, 10 insertions, 38 deletions
diff --git a/src/modules/dropshadow/e_mod_config.c b/src/modules/dropshadow/e_mod_config.c
index 7a769ee7a5..b33fb79663 100644
--- a/src/modules/dropshadow/e_mod_config.c
+++ b/src/modules/dropshadow/e_mod_config.c
@@ -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 @@ struct _E_Config_Dialog_Data
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 @@ _fill_data(Dropshadow *ds, E_Config_Dialog_Data *cfdata)
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 *