Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
felix642 committed Feb 22, 2025
1 parent 9fbf33c commit 0485292
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/fheroes2/dialog/dialog_selectfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ namespace
};

listbox.Redraw();
fheroes2::TextInput textInput( filename, fheroes2::FontType::normalWhite() );
fheroes2::TextInput textInput;
redrawTextInputField( textInput, filename, textInputRoi, 0, isEditing );

const fheroes2::Text title( header, fheroes2::FontType::normalYellow() );
Expand Down
1 change: 0 additions & 1 deletion src/fheroes2/gui/ui_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ namespace fheroes2
// If some characters were deleted and we have space for new characters.
int32_t currentWidth
= getLineWidth( reinterpret_cast<const uint8_t *>( _text.data() + _textOffset ), static_cast<int32_t>( _text.size() - _textOffset ), charHandler, true );
;
const uint8_t * textData = reinterpret_cast<const uint8_t *>( _text.data() );

while ( _textOffset > 0 ) {
Expand Down

0 comments on commit 0485292

Please sign in to comment.