Add erase_rect

This commit is contained in:
Alexander Batalov 2023-09-02 19:57:14 +03:00
parent 9178abc53d
commit 7f920fe13b
2 changed files with 25 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#include "mapper/map_func.h" #include "mapper/map_func.h"
#include "proto.h" #include "proto.h"
#include "window_manager.h"
namespace fallout { namespace fallout {
@ -19,6 +20,27 @@ void copy_proto_lists()
// TODO: Incomplete. // 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 // 0x484400
int toolbar_proto(int type, int id) int toolbar_proto(int type, int id)
{ {

View File

@ -1,10 +1,13 @@
#ifndef FALLOUT_MAPPER_MAP_FUNC_H_ #ifndef FALLOUT_MAPPER_MAP_FUNC_H_
#define FALLOUT_MAPPER_MAP_FUNC_H_ #define FALLOUT_MAPPER_MAP_FUNC_H_
#include "geometry.h"
namespace fallout { namespace fallout {
void setup_map_dirs(); void setup_map_dirs();
void copy_proto_lists(); void copy_proto_lists();
void erase_rect(Rect* rect);
int toolbar_proto(int type, int id); int toolbar_proto(int type, int id);
bool map_toggle_block_obj_viewing_on(); bool map_toggle_block_obj_viewing_on();