forked from KolibriOS/kolibrios
cmm: various size of icons support
git-svn-id: svn://kolibrios.org@8789 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3efccda48e
commit
b57726e4bc
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
// 70.5 - get volume info and label
|
// 70.5 - get volume info and label
|
||||||
|
|
||||||
#define TITLE "Eolite File Manager 4.65"
|
#define TITLE "Eolite File Manager 4.66"
|
||||||
#define ABOUT_TITLE "EOLITE 4.65"
|
#define ABOUT_TITLE "EOLITE 4.66"
|
||||||
|
|
||||||
#ifndef AUTOBUILD
|
#ifndef AUTOBUILD
|
||||||
#include "lang.h--"
|
#include "lang.h--"
|
||||||
@ -831,7 +831,7 @@ void Line_ReDraw(dword bgcol, filenum){
|
|||||||
{
|
{
|
||||||
if (Form.width>=480)
|
if (Form.width>=480)
|
||||||
{
|
{
|
||||||
FileShow.start_x = files.x + 23;
|
FileShow.start_x = files.x + icon_size + 7;
|
||||||
FileShow.font_color = text_col;
|
FileShow.font_color = text_col;
|
||||||
FileShow.area_size_x = files.w - 164;
|
FileShow.area_size_x = files.w - 164;
|
||||||
FileShow.text_pointer = file_name_off;
|
FileShow.text_pointer = file_name_off;
|
||||||
|
@ -291,10 +291,10 @@ void BigFontsChange()
|
|||||||
void BigIconsSwitch()
|
void BigIconsSwitch()
|
||||||
{
|
{
|
||||||
if (big_icons.checked) {
|
if (big_icons.checked) {
|
||||||
icon_size=32;
|
icon_size = 32;
|
||||||
LoadIcons();
|
LoadIcons();
|
||||||
} else {
|
} else {
|
||||||
icon_size=16;
|
icon_size = icons16_default.w;
|
||||||
}
|
}
|
||||||
BigFontsChange();
|
BigFontsChange();
|
||||||
}
|
}
|
||||||
|
@ -271,7 +271,7 @@ struct libimg_image
|
|||||||
if (DSDWORD[ESI]==0xffCACBD6) DSDWORD[ESI] = bgshadow;
|
if (DSDWORD[ESI]==0xffCACBD6) DSDWORD[ESI] = bgshadow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
img_draw stdcall(pure_img16, x, y, 16, 16, 0, icon_n*16);
|
img_draw stdcall(pure_img16, x, y, ESDWORD[EAX+4], ESDWORD[EAX+4], 0, icon_n*ESDWORD[EAX+4]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -23,7 +23,8 @@ unsigned int DrawTopPanelButton(dword _button_id, _x, _y, signed int _icon_n, bo
|
|||||||
DrawBar(_x+6, _y+5, 16, 16, semi_white);
|
DrawBar(_x+6, _y+5, 16, 16, semi_white);
|
||||||
for (i=0; i<=2; i++) DrawBar(_x+6, i*5+_y+7, 15, 3, sc.work_graph);
|
for (i=0; i<=2; i++) DrawBar(_x+6, i*5+_y+7, 15, 3, sc.work_graph);
|
||||||
} else {
|
} else {
|
||||||
img_draw stdcall(top_icons.image, _x+6, _y+5+pressed, 16, 16, 0, _icon_n*16);
|
i = TSZE - top_icons.w / 2; //icon pos
|
||||||
|
img_draw stdcall(top_icons.image, _x+i+2, _y+i+1+pressed, top_icons.w, top_icons.w, 0, _icon_n*top_icons.w);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pressed) {
|
if (!pressed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user