Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Bring back displaying of file header in highlight mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadelessFox committed Sep 15, 2020
1 parent dc05e63 commit 72a00ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/projectds_app_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ void ProjectDS::draw_filepreview() {

if (ImGui::BeginPopupContextItem(buffer.str().c_str())) {
if (ImGui::Selectable("Highlight")) {
selection_info.preview_file_offset = file->offset + sizeof(Decima::CoreHeader) + sizeof(Decima::GUID);
selection_info.preview_file_size = file->header.file_size - sizeof(Decima::GUID);
selection_info.preview_file_offset = file->offset;
selection_info.preview_file_size = file->header.file_size + sizeof(Decima::CoreHeader);
}

ImGui::EndPopup();
Expand Down

0 comments on commit 72a00ac

Please sign in to comment.