@@ -93,10 +93,6 @@ void draw_manual_moves_window(const std::string& block_id) {
9393
9494void calculate_cost_callback (GtkWidget* /* widget*/ , GtkWidget* grid) {
9595 int block_id = -1 ;
96- int x_location = -1 ;
97- int y_location = -1 ;
98- int layer_location = -1 ;
99- int subtile_location = -1 ;
10096 bool valid_input = true ;
10197
10298 t_draw_state* draw_state = get_draw_state_vars ();
@@ -119,10 +115,10 @@ void calculate_cost_callback(GtkWidget* /*widget*/, GtkWidget* grid) {
119115 GtkWidget* layer_position_entry = gtk_grid_get_child_at ((GtkGrid*)grid, 2 , 3 );
120116 GtkWidget* subtile_position_entry = gtk_grid_get_child_at ((GtkGrid*)grid, 2 , 4 );
121117
122- x_location = std::atoi (gtk_entry_get_text ((GtkEntry*)x_position_entry));
123- y_location = std::atoi (gtk_entry_get_text ((GtkEntry*)y_position_entry));
124- layer_location = std::atoi (gtk_entry_get_text ((GtkEntry*)layer_position_entry));
125- subtile_location = std::atoi (gtk_entry_get_text ((GtkEntry*)subtile_position_entry));
118+ int x_location = std::atoi (gtk_entry_get_text ((GtkEntry*)x_position_entry));
119+ int y_location = std::atoi (gtk_entry_get_text ((GtkEntry*)y_position_entry));
120+ int layer_location = std::atoi (gtk_entry_get_text ((GtkEntry*)layer_position_entry));
121+ int subtile_location = std::atoi (gtk_entry_get_text ((GtkEntry*)subtile_position_entry));
126122
127123 if (std::string (gtk_entry_get_text ((GtkEntry*)block_entry)).empty () || std::string (gtk_entry_get_text ((GtkEntry*)x_position_entry)).empty () || std::string (gtk_entry_get_text ((GtkEntry*)y_position_entry)).empty () || std::string (gtk_entry_get_text ((GtkEntry*)layer_position_entry)).empty () || std::string (gtk_entry_get_text ((GtkEntry*)subtile_position_entry)).empty ()) {
128124 invalid_breakpoint_entry_window (" Not all fields are complete" );
@@ -324,7 +320,7 @@ e_create_move manual_move_display_and_propose(ManualMoveGenerator& manual_move_g
324320 const t_placer_opts& placer_opts,
325321 const PlacerCriticalities* criticalities) {
326322 draw_manual_moves_window (" " );
327- update_screen (ScreenUpdatePriority::MAJOR, " " , PLACEMENT, nullptr );
323+ update_screen (ScreenUpdatePriority::MAJOR, " " , e_pic_type:: PLACEMENT, nullptr );
328324 move_type = e_move_type::MANUAL_MOVE;
329325 t_propose_action proposed_action{move_type, -1 }; // no need to specify block type in manual move "propose_move" function
330326 return manual_move_generator.propose_move (blocks_affected, proposed_action, rlim, placer_opts, criticalities);
0 commit comments