Add erase_rect
This commit is contained in:
parent
9178abc53d
commit
7f920fe13b
|
@ -1,6 +1,7 @@
|
|||
#include "mapper/map_func.h"
|
||||
|
||||
#include "proto.h"
|
||||
#include "window_manager.h"
|
||||
|
||||
namespace fallout {
|
||||
|
||||
|
@ -19,6 +20,27 @@ void copy_proto_lists()
|
|||
// TODO: Incomplete.
|
||||
}
|
||||
|
||||
// 0x4843A0
|
||||
void erase_rect(Rect* rect)
|
||||
{
|
||||
Rect r = *rect;
|
||||
|
||||
r.bottom = rect->top;
|
||||
windowRefreshAll(&r);
|
||||
|
||||
r.bottom = rect->bottom;
|
||||
r.left = rect->right;
|
||||
windowRefreshAll(&r);
|
||||
|
||||
r.left = rect->left;
|
||||
r.top = rect->bottom;
|
||||
windowRefreshAll(&r);
|
||||
|
||||
r.top = rect->top;
|
||||
r.right = rect->left;
|
||||
windowRefreshAll(&r);
|
||||
}
|
||||
|
||||
// 0x484400
|
||||
int toolbar_proto(int type, int id)
|
||||
{
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
#ifndef FALLOUT_MAPPER_MAP_FUNC_H_
|
||||
#define FALLOUT_MAPPER_MAP_FUNC_H_
|
||||
|
||||
#include "geometry.h"
|
||||
|
||||
namespace fallout {
|
||||
|
||||
void setup_map_dirs();
|
||||
void copy_proto_lists();
|
||||
void erase_rect(Rect* rect);
|
||||
int toolbar_proto(int type, int id);
|
||||
bool map_toggle_block_obj_viewing_on();
|
||||
|
||||
|
|
Loading…
Reference in New Issue