Skip to content

Commit 18841d6

Browse files
committed
Somewhat functional resize
Signed-off-by: Manuel Bertele <manuel.bertele2003@gmail.com>
1 parent 8c08f93 commit 18841d6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/draw.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ void gui_draw_hex(byte *file) {
9595
}
9696
wprintw(text, "%c", file[i+j]);
9797
}
98-
//wprintw(hex, "\n");
9998
wprintw(text, "\n");
10099
mvwprintw(lines, line, 1, "0x%08x:", i);
101100

@@ -111,7 +110,7 @@ void gui_draw_hex(byte *file) {
111110

112111
void draw_cursor_reset() {
113112

114-
wmove(hex, 1, 1);
113+
wmove(hex, 0, 0);
115114
REFRESH_WINDOW(hex)
116115
}
117116

src/hexify.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ int main(int argc, char *argv[]) {
6262
switch (inp) {
6363

6464
case -1:
65-
doupdate();
65+
gui_init();
66+
gui_draw_hex(file_content);
67+
gui_draw_title("Open file: %s", file_name);
6668
break;
6769

6870
case 27:

0 commit comments

Comments
 (0)