diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-06 21:31:43 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-06 21:31:43 +0000 |
commit | fef7a7fb89b529bb3695bbff14d964f4da49ab64 (patch) | |
tree | a5a3c3f43d81fa71d3437ad1ac3ab6385961b813 /src/main.cpp | |
parent | 16d1701920597d0a9636e30d57ebf399395233d9 (diff) | |
download | mana-fef7a7fb89b529bb3695bbff14d964f4da49ab64.tar.gz mana-fef7a7fb89b529bb3695bbff14d964f4da49ab64.tar.bz2 mana-fef7a7fb89b529bb3695bbff14d964f4da49ab64.tar.xz mana-fef7a7fb89b529bb3695bbff14d964f4da49ab64.zip |
Moved some GUI code into a class.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3dc7862c..a955ea01 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -279,6 +279,7 @@ void init_engine() { 0, 0, playerbitmap->w, playerbitmap->h, 0, 0, playerbitmap2->w, playerbitmap2->h); playerset = new Spriteset(playerbitmap2, 160, 120, 0, 0); + destroy_bitmap(playerbitmap); BITMAP *hairbitmap = load_bitmap("data/graphic/hairset.bmp", NULL); if (!hairbitmap) error("Couldn't load hairset.bmp"); @@ -288,6 +289,7 @@ void init_engine() { 0, 0, hairbitmap->w, hairbitmap->h, 0, 0, hairbitmap2->w, hairbitmap2->h); hairset = new Spriteset(hairbitmap2, 40, 40, 0, 0); + destroy_bitmap(hairbitmap); // TODO: Remove Allegro config file usage from GUI look init_gui(buffer, "data/Skin/aqua.skin"); |