From f6008b603d70698f0e9f451cb84ad4516a4cfb38 Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Fri, 23 Feb 2024 08:06:03 +0000 Subject: [PATCH] Project: Updated the name of the main memory window and made a small change to make clang happy --- gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui.c b/gui.c index 1734ece..4ff163f 100644 --- a/gui.c +++ b/gui.c @@ -437,7 +437,7 @@ int update_memdump(WINDOW *win,uint32_t address,struct simdata_t *simdata){ int width,height; getmaxyx(win,height,width); box(win, 0 , 0); - mvwprintw(win,0,width/2-6,"[ MEMDUMP ]"); + mvwprintw(win,0,width/2-5,"[ MEMORY ]"); if(simdata->registers==NULL||simdata->RAM==NULL){ mvwprintw(win,1,1,"Data not initialised"); return 0; @@ -666,10 +666,10 @@ int update_general_terminal_output(struct simdata_t *simdata){ int vfb_width=(width-2)*2; int vfb_height=(height-2)*4; + float x0,y0,x1,y1; for(uint64_t i=0;i < simdata->terminal_output_size/4;i++){ uint32_t c=simdata->terminal_output[i]; if(vector){ - float x0,y0,x1,y1; switch(vstate){ case 0: /*start of line*/ if(c==0x00000001)