Skip to content

Commit

Permalink
- Hide device name from current path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Jan 30, 2024
1 parent 82a9d10 commit beb9237
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cube/swiss/source/swiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void drawFiles(file_handle** directory, int num_files, uiDrawObj_t *containerPan
int scrollBarTabHeight = (int)((float)scrollBarHeight/(float)num_files);
if(num_files > 0) {
// Draw which directory we're in
sprintf(txtbuffer, "%s", &curDir.name[0]);
sprintf(txtbuffer, "%s", getDevicePath(&curDir.name[0]));
float scale = GetTextScaleToFitInWidthWithMax(txtbuffer, ((getVideoMode()->fbWidth-150)-20), .85);
DrawAddChild(containerPanel, DrawStyledLabel(150, 80, txtbuffer, scale, false, defaultColor));
if(!strcmp(&swissSettings.autoload[0], &curDir.name[0])
Expand Down Expand Up @@ -485,7 +485,7 @@ void drawFilesCarousel(file_handle** directory, int num_files, uiDrawObj_t *cont
drawCurrentDeviceCarousel(containerPanel);
if(num_files > 0) {
// Draw which directory we're in
sprintf(txtbuffer, "%s", &curDir.name[0]);
sprintf(txtbuffer, "%s", getDevicePath(&curDir.name[0]));
float scale = GetTextScaleToFitInWidthWithMax(txtbuffer, (getVideoMode()->fbWidth-60), .85);
DrawAddChild(containerPanel, DrawStyledLabel(30, 80, txtbuffer, scale, false, defaultColor));
if(!strcmp(&swissSettings.autoload[0], &curDir.name[0])
Expand Down Expand Up @@ -683,7 +683,7 @@ void drawFilesFullwidth(file_handle** directory, int num_files, uiDrawObj_t *con
int scrollBarTabHeight = (int)((float)scrollBarHeight/(float)num_files);
if(num_files > 0) {
// Draw which directory we're in
sprintf(txtbuffer, "%s", &curDir.name[0]);
sprintf(txtbuffer, "%s", getDevicePath(&curDir.name[0]));
float scale = GetTextScaleToFitInWidthWithMax(txtbuffer, (getVideoMode()->fbWidth-60), .85);
DrawAddChild(containerPanel, DrawStyledLabel(30, 80, txtbuffer, scale, false, defaultColor));
if(!strcmp(&swissSettings.autoload[0], &curDir.name[0])
Expand Down

0 comments on commit beb9237

Please sign in to comment.