diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SplashScreen/src/bitmap_funcs.cpp | 15 | ||||
-rw-r--r-- | plugins/SplashScreen/src/bitmap_funcs.h | 10 |
2 files changed, 5 insertions, 20 deletions
diff --git a/plugins/SplashScreen/src/bitmap_funcs.cpp b/plugins/SplashScreen/src/bitmap_funcs.cpp index 9918d28790..26ccc3a2d2 100644 --- a/plugins/SplashScreen/src/bitmap_funcs.cpp +++ b/plugins/SplashScreen/src/bitmap_funcs.cpp @@ -21,30 +21,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA MyBitmap::MyBitmap()
{
- dcBmp = nullptr;
- hBmp = nullptr;
- bits = nullptr;
- width = height = 0;
- bitsSave = nullptr;
}
MyBitmap::MyBitmap(int w, int h)
{
- dcBmp = nullptr;
- hBmp = nullptr;
- bits = nullptr;
- width = height = 0;
- bitsSave = nullptr;
allocate(w, h);
}
MyBitmap::MyBitmap(wchar_t *fn)
{
- dcBmp = nullptr;
- hBmp = nullptr;
- bits = nullptr;
- width = height = 0;
- bitsSave = nullptr;
loadFromFile(fn);
}
diff --git a/plugins/SplashScreen/src/bitmap_funcs.h b/plugins/SplashScreen/src/bitmap_funcs.h index 851b746e4d..05cbabc0ce 100644 --- a/plugins/SplashScreen/src/bitmap_funcs.h +++ b/plugins/SplashScreen/src/bitmap_funcs.h @@ -12,11 +12,11 @@ public: };
private:
- HBITMAP hBmpSave, hBmp;
- HDC dcBmp;
- COLOR32 *bits;
- COLOR32 *bitsSave;
- int width, height;
+ HBITMAP hBmpSave = 0, hBmp = 0;
+ HDC dcBmp = 0;
+ COLOR32 *bits = 0;
+ COLOR32 *bitsSave = 0;
+ int width = 0, height = 0;
void allocate(int w, int h);
void free();
|