diff options
Diffstat (limited to 'plugins/Clist_modern/modern_image_array.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_image_array.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/Clist_modern/modern_image_array.cpp b/plugins/Clist_modern/modern_image_array.cpp index 0bd302c0a9..7d0dbd5106 100644 --- a/plugins/Clist_modern/modern_image_array.cpp +++ b/plugins/Clist_modern/modern_image_array.cpp @@ -43,7 +43,7 @@ static BOOL ImageArray_Alloc(LP_IMAGE_ARRAY_DATA iad, int size) {
size_grow += iad->grow_step - (size_grow % iad->grow_step);
- if (iad->nodes !=NULL)
+ if (iad->nodes != NULL)
{
IMAGE_ARRAY_DATA_NODE *tmp = (IMAGE_ARRAY_DATA_NODE *) realloc((void *)iad->nodes,
sizeof(IMAGE_ARRAY_DATA_NODE) * size_grow);
@@ -79,7 +79,7 @@ static BOOL ImageArray_Alloc(LP_IMAGE_ARRAY_DATA iad, int size) else if (size < iad->nodes_allocated_size)
{
// Give some more space to try to avoid a free
- if ( (iad->nodes_allocated_size - size) / iad->grow_step >= 2 )
+ if ( (iad->nodes_allocated_size - size) / iad->grow_step >= 2 )
{
IMAGE_ARRAY_DATA_NODE *tmp;
@@ -135,7 +135,7 @@ HBITMAP ImageArray_Free(LP_IMAGE_ARRAY_DATA iad, BOOL keep_bitmap) {
mod_DeleteDC(iad->hdc);
- if (iad->img !=NULL && !keep_bitmap)
+ if (iad->img != NULL && !keep_bitmap)
{
DeleteObject(iad->img);
iad->img = NULL;
@@ -143,7 +143,7 @@ HBITMAP ImageArray_Free(LP_IMAGE_ARRAY_DATA iad, BOOL keep_bitmap) iad->height = 0;
}
- if (iad->nodes !=NULL)
+ if (iad->nodes != NULL)
{
free(iad->nodes);
iad->nodes = NULL;
@@ -163,7 +163,7 @@ void ImageArray_Clear(LP_IMAGE_ARRAY_DATA iad) if (iad->hdc) mod_DeleteDC(iad->hdc);
iad->hdc = tmpdc;
- if (iad->img !=NULL)
+ if (iad->img != NULL)
{
DeleteObject(iad->img);
iad->img = NULL;
@@ -171,7 +171,7 @@ void ImageArray_Clear(LP_IMAGE_ARRAY_DATA iad) iad->height = 0;
}
- if (iad->nodes !=NULL)
+ if (iad->nodes != NULL)
{
free(iad->nodes);
iad->nodes = NULL;
@@ -202,7 +202,7 @@ int ImageArray_AddImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos) pos = iad->nodes_size;
// Add to end?
- if (pos >= iad->nodes_size)
+ if (pos >= iad->nodes_size)
{
pos = iad->nodes_size;
last_one = TRUE;
@@ -273,7 +273,7 @@ int ImageArray_AddImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos) {
w = iad->width;
h = 0;
- for(i = 0; i < pos; i++)
+ for(i=0; i < pos; i++)
{
h += iad->nodes[i].height;
}
@@ -282,7 +282,7 @@ int ImageArray_AddImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos) {
h = iad->height;
w = 0;
- for(i = 0; i < pos; i++)
+ for(i=0; i < pos; i++)
{
w += iad->nodes[i].width;
}
@@ -340,7 +340,7 @@ int ImageArray_AddImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos) // restore things
SelectObject(hdc_old,old_bmp);
mod_DeleteDC(hdc_old);
- if (iad->img !=NULL) DeleteObject(iad->img);
+ if (iad->img != NULL) DeleteObject(iad->img);
iad->img = hNewBmp;
// Move array
@@ -377,7 +377,7 @@ BOOL ImageArray_ChangeImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos) if (pos < 0)
return FALSE;
- if (pos >= iad->nodes_size)
+ if (pos >= iad->nodes_size)
return FALSE;
EnterCriticalSection(&iad->cs);
@@ -434,7 +434,7 @@ BOOL ImageArray_ChangeImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos) {
w = iad->width;
h = 0;
- for(i = 0; i < pos; i++)
+ for(i=0; i < pos; i++)
{
h += iad->nodes[i].height;
}
@@ -443,7 +443,7 @@ BOOL ImageArray_ChangeImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos) {
h = iad->height;
w = 0;
- for(i = 0; i < pos; i++)
+ for(i=0; i < pos; i++)
{
w += iad->nodes[i].width;
}
@@ -500,7 +500,7 @@ BOOL ImageArray_ChangeImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos) // restore things
mod_DeleteDC(hdc_old);
- if (iad->img !=NULL) DeleteObject(iad->img);
+ if (iad->img != NULL) DeleteObject(iad->img);
iad->img = hNewBmp;
// Move array
@@ -528,7 +528,7 @@ BOOL ImageArray_RemoveImage(LP_IMAGE_ARRAY_DATA iad, int pos) if (pos < 0)
return FALSE;
- if (pos >= iad->nodes_size)
+ if (pos >= iad->nodes_size)
return FALSE;
EnterCriticalSection(&iad->cs);
@@ -578,7 +578,7 @@ BOOL ImageArray_RemoveImage(LP_IMAGE_ARRAY_DATA iad, int pos) {
w = iad->width;
h = 0;
- for(i = 0; i < pos; i++)
+ for(i=0; i < pos; i++)
{
h += iad->nodes[i].height;
}
@@ -587,7 +587,7 @@ BOOL ImageArray_RemoveImage(LP_IMAGE_ARRAY_DATA iad, int pos) {
h = iad->height;
w = 0;
- for(i = 0; i < pos; i++)
+ for(i=0; i < pos; i++)
{
w += iad->nodes[i].width;
}
@@ -629,7 +629,7 @@ BOOL ImageArray_RemoveImage(LP_IMAGE_ARRAY_DATA iad, int pos) // restore things
mod_DeleteDC(hdc_old);
- if (iad->img !=NULL) DeleteObject(iad->img);
+ if (iad->img != NULL) DeleteObject(iad->img);
iad->img = hNewBmp;
// Move array
@@ -656,7 +656,7 @@ BOOL ImageArray_RemoveImage(LP_IMAGE_ARRAY_DATA iad, int pos) BOOL ImageArray_DrawImage(LP_IMAGE_ARRAY_DATA iad, int pos, HDC hdcDest, int nXDest, int nYDest, BYTE Alpha)
{
- if (hdcDest == NULL || pos < 0 || pos >= iad->nodes_size)
+ if (hdcDest == NULL || pos < 0 || pos >= iad->nodes_size)
return FALSE;
EnterCriticalSection(&iad->cs);
@@ -667,7 +667,7 @@ BOOL ImageArray_DrawImage(LP_IMAGE_ARRAY_DATA iad, int pos, HDC hdcDest, int nXD {
w = 0;
h = 0;
- for(i = 0; i < pos; i++)
+ for(i=0; i < pos; i++)
{
h += iad->nodes[i].height;
}
@@ -676,7 +676,7 @@ BOOL ImageArray_DrawImage(LP_IMAGE_ARRAY_DATA iad, int pos, HDC hdcDest, int nXD {
h = 0;
w = 0;
- for(i = 0; i < pos; i++)
+ for(i=0; i < pos; i++)
{
w += iad->nodes[i].width;
}
|