aboutsummaryrefslogtreecommitdiff
path: root/sword2/layers.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-09-26 10:07:18 +0000
committerTorbjörn Andersson2003-09-26 10:07:18 +0000
commitb21208e6a92b4e8082d04994b0c99709e2712472 (patch)
tree0357b0847efb8a714e2d8f57493be53ec852bd25 /sword2/layers.h
parentb7a5024dafefab136c9fc9d5af67588349178681 (diff)
downloadscummvm-rg350-b21208e6a92b4e8082d04994b0c99709e2712472.tar.gz
scummvm-rg350-b21208e6a92b4e8082d04994b0c99709e2712472.tar.bz2
scummvm-rg350-b21208e6a92b4e8082d04994b0c99709e2712472.zip
Some more reformatting / cleanup, and removal of comments that did nothing
but say who added what when. (No disrespect intended, but this information means very little to us.) svn-id: r10413
Diffstat (limited to 'sword2/layers.h')
-rw-r--r--sword2/layers.h44
1 files changed, 21 insertions, 23 deletions
diff --git a/sword2/layers.h b/sword2/layers.h
index daf15926ce..2ab1bc4a4f 100644
--- a/sword2/layers.h
+++ b/sword2/layers.h
@@ -23,37 +23,35 @@
#include "memory.h"
typedef struct {
- uint16 scroll_offset_x; // position x
- uint16 scroll_offset_y; // position y
- uint16 max_scroll_offset_x; // calc'ed in FN_init_background
+ uint16 scroll_offset_x; // Position x
+ uint16 scroll_offset_y; // Position y
+ uint16 max_scroll_offset_x; // Calc'ed in FN_init_background
uint16 max_scroll_offset_y;
- // feet coordinates to use - cant just fetch the player compact anymore
- int16 player_feet_x;
- int16 player_feet_y;
- // special offset-to-player position - tweek as desired - always set
- // in screen manager object startup
- int16 feet_x;
- int16 feet_y;
- // size of background layer - hence size of back buffer itself (Paul
- // actually malloc's it)
- uint16 screen_wide;
- uint16 screen_deep;
- uint32 background_layer_id; // id of the normal background layer
- // from the header of the main background layer
+ int16 player_feet_x; // Feet coordinates to use - cant just
+ int16 player_feet_y; // fetch the player compact anymore
+ int16 feet_x; // Special offset-to-player position -
+ int16 feet_y; // tweek as desired - always set in
+ // screen manager object startup
+ uint16 screen_wide; // Size of background layer - hence
+ uint16 screen_deep; // size of back buffer itself (Paul
+ // actually malloc's it)
+ uint32 background_layer_id; // Id of the normal background layer
+ // from the header of the main
+ // background layer
uint16 number_of_layers;
- // set to non zero to start the palette held within layer file fading
- // up after a build_display
- uint8 new_palette;
- uint8 scroll_flag; // scroll mode 0 off 1 on
- uint8 mask_flag; // using shading mask
+ uint8 new_palette; // Set to non zero to start the
+ // palette held within layer file
+ // fading up after a build_display
+ uint8 scroll_flag; // Scroll mode 0 off 1 on
+ uint8 mask_flag; // Using shading mask
} screen_info;
extern screen_info this_screen;
-int32 FN_init_background(int32 *params); // Tony11Sept96
+int32 FN_init_background(int32 *params);
-// James(13jun97)
// called from control panel (as well as inside FN_init_background)
+
void SetUpBackgroundLayers(void);
#endif