diff options
| author | George Hazan <george.hazan@gmail.com> | 2015-04-20 13:54:07 +0000 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2015-04-20 13:54:07 +0000 |
| commit | 418db2636cc5b4e519f281c16a5e0496b80dc8d1 (patch) | |
| tree | e374342da6bd1fd8136262266407b824619c27b0 /plugins/Clist_modern/src/hdr/modern_image_array.h | |
| parent | 806188a1903da4f59d7610edd5bed457c5978d84 (diff) | |
minor code fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12974 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/hdr/modern_image_array.h')
| -rw-r--r-- | plugins/Clist_modern/src/hdr/modern_image_array.h | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/plugins/Clist_modern/src/hdr/modern_image_array.h b/plugins/Clist_modern/src/hdr/modern_image_array.h index 3d8322146d..e45b3c4fef 100644 --- a/plugins/Clist_modern/src/hdr/modern_image_array.h +++ b/plugins/Clist_modern/src/hdr/modern_image_array.h @@ -32,14 +32,13 @@ Created by Pescuma #include <windows.h>
-typedef struct _IMAGE_ARRAY_DATA_NODE
+struct IMAGE_ARRAY_DATA_NODE
{
int width;
int height;
-}
-IMAGE_ARRAY_DATA_NODE;
+};
-typedef struct _IMAGE_ARRAY_DATA
+struct IMAGE_ARRAY_DATA
{
// Configuration
BOOL width_based;
@@ -59,46 +58,30 @@ typedef struct _IMAGE_ARRAY_DATA IMAGE_ARRAY_DATA_NODE *nodes;
int nodes_size;
int nodes_allocated_size;
-}
-IMAGE_ARRAY_DATA, *LP_IMAGE_ARRAY_DATA;
+};
// Initialize data
-void ImageArray_Initialize(LP_IMAGE_ARRAY_DATA iad, BOOL width_based, int grow_step);
+void ImageArray_Initialize(IMAGE_ARRAY_DATA *iad, BOOL width_based, int grow_step);
// Free data but keep config
-void ImageArray_Clear(LP_IMAGE_ARRAY_DATA iad);
+void ImageArray_Clear(IMAGE_ARRAY_DATA *iad);
// Free data
// If keep_bitmap is TRUE, doesn't delete de bitmap and return its handle. Else, return NULL
-HBITMAP ImageArray_Free(LP_IMAGE_ARRAY_DATA iad, BOOL keep_bitmap);
+HBITMAP ImageArray_Free(IMAGE_ARRAY_DATA *iad, BOOL keep_bitmap);
// Add image to the list (return the index of the image or -1 on error)
// If pos == -1, add to the end of the list
-int ImageArray_AddImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos);
+int ImageArray_AddImage(IMAGE_ARRAY_DATA *iad, HBITMAP hBmp, int pos);
// Change an image in the list (return TRUE on success)
-BOOL ImageArray_ChangeImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos);
+BOOL ImageArray_ChangeImage(IMAGE_ARRAY_DATA *iad, HBITMAP hBmp, int pos);
// Remove an image
-BOOL ImageArray_RemoveImage(LP_IMAGE_ARRAY_DATA iad, int pos);
+BOOL ImageArray_RemoveImage(IMAGE_ARRAY_DATA *iad, int pos);
// Draw an image
-BOOL ImageArray_DrawImage(LP_IMAGE_ARRAY_DATA iad, int pos, HDC hdcDest, int nXDest, int nYDest, BYTE Alpha);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+BOOL ImageArray_DrawImage(IMAGE_ARRAY_DATA *iad, int pos, HDC hdcDest, int nXDest, int nYDest, BYTE Alpha);
#endif // __IMAGE_ARRAY_H__
|
