Remove create_clip_region() function
This commit is contained in:
@@ -152,7 +152,6 @@ void start_shop_mode(short shop_type,short shop_min,short shop_max,short cost_ad
|
||||
store_pre_shop_mode = overall_mode;
|
||||
overall_mode = MODE_SHOPPING;
|
||||
stat_screen_mode = 1;
|
||||
create_clip_region();
|
||||
|
||||
set_up_shop_array();
|
||||
put_background();
|
||||
@@ -179,7 +178,6 @@ void end_shop_mode()
|
||||
}
|
||||
|
||||
overall_mode = store_pre_shop_mode;
|
||||
create_clip_region();
|
||||
if (overall_mode == MODE_TALK_TOWN)
|
||||
overall_mode = MODE_TOWN;
|
||||
if (overall_mode == MODE_TOWN) {
|
||||
@@ -541,7 +539,6 @@ void start_talk_mode(short m_num,short personality,m_num_t monst_type,short stor
|
||||
|
||||
store_pre_talk_mode = overall_mode;
|
||||
overall_mode = MODE_TALKING;
|
||||
create_clip_region();
|
||||
talk_end_forced = false;
|
||||
stat_screen_mode = 1;
|
||||
|
||||
@@ -564,7 +561,6 @@ void start_talk_mode(short m_num,short personality,m_num_t monst_type,short stor
|
||||
void end_talk_mode()
|
||||
{
|
||||
overall_mode = store_pre_talk_mode;
|
||||
create_clip_region();
|
||||
if (overall_mode == MODE_TALK_TOWN)
|
||||
overall_mode = MODE_TOWN;
|
||||
if (overall_mode == MODE_TOWN) {
|
||||
|
@@ -214,7 +214,6 @@ void finish_load_party(){
|
||||
center = univ.town.p_loc;
|
||||
}
|
||||
|
||||
create_clip_region();
|
||||
redraw_screen();
|
||||
current_pc = first_active_pc();
|
||||
loaded_yet = true;
|
||||
|
@@ -194,8 +194,6 @@ void adjust_window_mode()
|
||||
}
|
||||
|
||||
}
|
||||
create_clip_region(); // TODO: Pretty sure this function can be deleted
|
||||
undo_clip(mainPtr);
|
||||
if (overall_mode != MODE_STARTUP) { // TODO: This is odd - fix it
|
||||
if (in_startup_mode == true)
|
||||
draw_startup(0);
|
||||
@@ -618,47 +616,6 @@ void load_main_screen()
|
||||
buttons_gworld.loadFromImage(*ResMgr::get<ImageRsrc>("buttons"));
|
||||
|
||||
// set_gworld_fonts(geneva_font_num);
|
||||
|
||||
create_clip_region();
|
||||
}
|
||||
|
||||
void create_clip_region()
|
||||
{
|
||||
short i;
|
||||
RECT store_rect;
|
||||
RECT scrollbar_rect;
|
||||
// TODO: Arbitrary clipping regions (use OpenGL stencil buffer?)
|
||||
// Note: I get the impression that the purpose of this clip region is so that BoE does not draw on the scrollbars
|
||||
// Since the scrollbars will be handled by BoE now, it's likely not necessary anymore
|
||||
#if 0
|
||||
DisposeRgn(clip_region);
|
||||
clip_region = NewRgn();
|
||||
OpenRgn();
|
||||
|
||||
RECT tempRect;
|
||||
GetWindowPortBounds(mainPtr,&tempRect);
|
||||
FrameRect(&tempRect);
|
||||
for (i = 0; i < 6; i++) {
|
||||
store_rect = win_to_rects[i];
|
||||
OffsetRect(&store_rect,ul.h,ul.v);
|
||||
if ((is_out()) || (is_town()) || (is_combat()) ||
|
||||
(i == 2) || (i == 3) || (i == 5))
|
||||
FrameRect(&store_rect);
|
||||
}
|
||||
if ((overall_mode == MODE_TALKING) || (overall_mode == MODE_SHOPPING) ){
|
||||
store_rect = talk_area_rect;
|
||||
OffsetRect(&store_rect,ul.h,ul.v);
|
||||
FrameRect(&store_rect);
|
||||
}
|
||||
scrollbar_rect = sbar_rect;
|
||||
OffsetRect(&scrollbar_rect,ul.h ,ul.v);
|
||||
FrameRect(&scrollbar_rect);
|
||||
scrollbar_rect = item_sbar_rect;
|
||||
OffsetRect(&scrollbar_rect,ul.h ,ul.v);
|
||||
FrameRect(&scrollbar_rect);
|
||||
|
||||
CloseRgn(clip_region);
|
||||
#endif
|
||||
}
|
||||
|
||||
void set_gworld_fonts(short font_num)
|
||||
|
@@ -17,7 +17,6 @@ void arrow_button_click(RECT button_rect);
|
||||
void end_startup();
|
||||
void Set_up_win ();
|
||||
void load_main_screen();
|
||||
void create_clip_region();
|
||||
void set_gworld_fonts(short font_num);
|
||||
void redraw_screen();
|
||||
void put_background();
|
||||
|
@@ -526,7 +526,6 @@ void put_party_in_scen(std::string scen_name)
|
||||
center = scenario.where_start;
|
||||
update_explored(scenario.where_start);
|
||||
overall_mode = MODE_TOWN;
|
||||
create_clip_region();
|
||||
redraw_screen();
|
||||
set_stat_window(0);
|
||||
adjust_spell_menus();
|
||||
|
Reference in New Issue
Block a user