forked from KolibriOS/kolibrios
bunch of fixes
git-svn-id: svn://kolibrios.org@9481 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
072499bde9
commit
b6b7629121
@ -33,7 +33,6 @@ install=/kolibrios/drivers/acpi/install.kex
|
|||||||
[Audio AMD Geode]
|
[Audio AMD Geode]
|
||||||
ver=rc3
|
ver=rc3
|
||||||
icon=64
|
icon=64
|
||||||
description_ru=„à ©¢¥à §¢ãª ¤«ï AMD Geode CS5536.
|
description_ru=„à ©¢¥à §¢ãª ¤«ï §¢ãª®¢ëå 稯®¢ AMD Geode CS5536.
|
||||||
description_en=AMD Geode CS5536 audio driver.
|
description_en=AMD Geode CS5536 audio driver.
|
||||||
readme=/kolibrios/drivers/geode/readme.txt
|
|
||||||
install=/kolibrios/drivers/geode/geode
|
install=/kolibrios/drivers/geode/geode
|
@ -117,8 +117,8 @@ void main()
|
|||||||
if (! edit_cmm.flags & ed_focus) && (! edit_st.flags & ed_focus)
|
if (! edit_cmm.flags & ed_focus) && (! edit_st.flags & ed_focus)
|
||||||
for (i=select_list.cur_y+1; i<select_list.count; i++)
|
for (i=select_list.cur_y+1; i<select_list.count; i++)
|
||||||
{
|
{
|
||||||
id = ESBYTE[list.get(i)];
|
id = list.get(i) + strrchr(list.get(i), '/');
|
||||||
if (id==ESBYTE[EAX]) || (id==key_ascii-32)
|
if (ESBYTE[id]==key_ascii) || (ESBYTE[id]==key_ascii-32)
|
||||||
{
|
{
|
||||||
select_list.cur_y = i - 1;
|
select_list.cur_y = i - 1;
|
||||||
select_list.KeyDown();
|
select_list.KeyDown();
|
||||||
|
@ -1,36 +1,46 @@
|
|||||||
|
inline fastcall replace_2cols(EDI, EDX, ESI, ECX, EBX, EAX)
|
||||||
|
{
|
||||||
|
EDX += EDI; //imgsrc + imgsize;
|
||||||
|
WHILE (EDI < EDX) {
|
||||||
|
IF (DSDWORD[EDI]==ESI) DSDWORD[EDI] = ECX;
|
||||||
|
ELSE IF (DSDWORD[EDI]==EBX) DSDWORD[EDI] = EAX;
|
||||||
|
EDI += 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:unsigned int DrawTopPanelButton(dword _button_id, _x, _y, signed int _icon_n, bool pressed)
|
:unsigned int DrawTopPanelButton(dword _button_id, _x, _y, signed int _icon_n, bool pressed)
|
||||||
{
|
{
|
||||||
#define TSZE 25
|
#define TSZE 25
|
||||||
static libimg_image top_icons;
|
static dword lightest, i16_mem, old_work_light;
|
||||||
static dword semi_white=0, bg_col_light, bg_col_dark;
|
dword i16_size;
|
||||||
int i;
|
if (!lightest) || (old_work_light != sc.work_light) {
|
||||||
if (!semi_white) {
|
old_work_light = sc.work_light;
|
||||||
top_icons.load("/sys/icons16.png");
|
lightest = MixColors(sc.work_light, 0xFFFfff, skin_is_dark()*155 + 20);
|
||||||
|
if (ESI = memopen("ICONS18", NULL, SHM_READ)) {
|
||||||
semi_white = MixColors(sc.work, 0xFFFfff, skin_is_dark()*90 + 96);
|
i16_size = EDX;
|
||||||
bg_col_dark = MixColors(sc.work, sc.work_graph, 90);
|
i16_mem = malloc(i16_size);
|
||||||
bg_col_light = MixColors(semi_white, 0xFFFfff, skin_is_dark()*90 + 10);
|
memmov(i16_mem, ESI, i16_size);
|
||||||
|
replace_2cols(i16_mem, i16_size, 0xffFFFfff, sc.work_light, 0xffCACBD6, sc.work_dark);
|
||||||
top_icons.replace_color(0xffFFFfff, semi_white);
|
|
||||||
top_icons.replace_color(0xffCACBD6, MixColors(semi_white, 0, 220));
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
DrawWideRectangle(_x+1, _y+1, TSZE, TSZE, 5, semi_white);
|
DrawWideRectangle(_x+1, _y+1, TSZE, TSZE, 5, sc.work_light);
|
||||||
|
|
||||||
DefineHiddenButton(_x, _y, TSZE+1, TSZE+1, _button_id);
|
DefineHiddenButton(_x, _y, TSZE+1, TSZE+1, _button_id);
|
||||||
if (_icon_n==-1) {
|
if (_icon_n==-1) {
|
||||||
DrawBar(_x+6, _y+5, 16, 16, semi_white);
|
DrawBar(_x+6, _y+5, 16, 16, sc.work_light);
|
||||||
for (i=0; i<=2; i++) DrawBar(_x+6, i*5+_y+7, 15, 3, sc.work_graph);
|
DrawBar(_x+6, _y+7, 15, 3, sc.work_graph);
|
||||||
|
$add ecx,5*65536
|
||||||
|
$int 64
|
||||||
|
$add ecx,5*65536
|
||||||
|
$int 64
|
||||||
} else {
|
} else {
|
||||||
i = TSZE - top_icons.w / 2; //icon pos
|
if (i16_mem) PutPaletteImage(18*18*4*_icon_n + i16_mem,
|
||||||
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);
|
18, 18, TSZE/2-9+2+_x, TSZE/2-9+1+_y+pressed, 32, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pressed) {
|
if (!pressed) {
|
||||||
DrawOvalBorder(_x, _y, TSZE, TSZE, bg_col_light, bg_col_dark, semi_white, sc.work);
|
DrawOvalBorder(_x, _y, TSZE, TSZE, lightest, sc.work_graph, sc.work_light, sc.work);
|
||||||
} else {
|
} else {
|
||||||
DrawOvalBorder(_x, _y, TSZE, TSZE, sc.work_graph, bg_col_light, semi_white, sc.work);
|
DrawOvalBorder(_x, _y, TSZE, TSZE, sc.work_graph, sc.work_light, sc.work_dark, sc.work);
|
||||||
PutShadow(_x+1, _y+1, TSZE, TSZE, true, 2);
|
PutShadow(_x+1, _y+1, TSZE, TSZE, true, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "../lib/obj/box_lib.h"
|
#include "../lib/obj/box_lib.h"
|
||||||
#include "../lib/obj/libini.h"
|
#include "../lib/obj/libini.h"
|
||||||
#include "../lib/obj/libimg.h"
|
|
||||||
#include "../lib/obj/iconv.h"
|
#include "../lib/obj/iconv.h"
|
||||||
#include "../lib/obj/proc_lib.h"
|
#include "../lib/obj/proc_lib.h"
|
||||||
|
|
||||||
@ -104,7 +103,6 @@ EVENTS key;
|
|||||||
void InitDlls()
|
void InitDlls()
|
||||||
{
|
{
|
||||||
load_dll(boxlib, #box_lib_init, 0);
|
load_dll(boxlib, #box_lib_init, 0);
|
||||||
load_dll(libimg, #libimg_init, 1);
|
|
||||||
load_dll(libini, #lib_init, 1);
|
load_dll(libini, #lib_init, 1);
|
||||||
load_dll(iconv_lib, #iconv_open, 0);
|
load_dll(iconv_lib, #iconv_open, 0);
|
||||||
load_dll(Proc_lib, #OpenDialog_init,0);
|
load_dll(Proc_lib, #OpenDialog_init,0);
|
||||||
@ -619,8 +617,8 @@ int TopBarBt(dword _event, _hotkey, char image_id, int x, pressed) {
|
|||||||
|
|
||||||
void DrawToolbar()
|
void DrawToolbar()
|
||||||
{
|
{
|
||||||
#define GAP_S 26+5
|
#define GAP_S 26+7
|
||||||
#define GAP_B 26+18
|
#define GAP_B 26+19
|
||||||
incn x;
|
incn x;
|
||||||
bool thema = false;
|
bool thema = false;
|
||||||
bool reopa = false;
|
bool reopa = false;
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
if tup.getconfig("NO_FASM") ~= "" then return end
|
if tup.getconfig("NO_FASM") ~= "" then return end
|
||||||
tup.rule("default.asm", 'fasm "%f" "%o" ' .. tup.getconfig("KPACK_CMD"), "Shkvorka.skn")
|
tup.rule("colors.dtp.asm", 'fasm "%f" "%o"', "colors.dtp")
|
||||||
|
tup.rule({"default.asm", extra_inputs = {"colors.dtp"}}, 'fasm "%f" "%o" ' .. tup.getconfig("KPACK_CMD"), "Shkvorka.skn")
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@fasm default.dtp.asm default.dtp
|
@fasm colors.dtp.asm colors.dtp
|
||||||
@fasm default.asm default.skn
|
@fasm default.asm default.skn
|
||||||
@kpack default.skn
|
@kpack default.skn
|
||||||
@pause
|
@pause
|
@ -3,7 +3,7 @@ struc system_colors
|
|||||||
.taskbar dd 0x586786
|
.taskbar dd 0x586786
|
||||||
.taskbar_text dd 0xFEFEFE
|
.taskbar_text dd 0xFEFEFE
|
||||||
.work_dark dd 0xC5BDB9
|
.work_dark dd 0xC5BDB9
|
||||||
.work_light dd 0xECE9E5
|
.work_light dd 0xF2EFEC
|
||||||
.window_title dd 0x333333
|
.window_title dd 0x333333
|
||||||
.work dd 0xDDD7CF
|
.work dd 0xDDD7CF
|
||||||
.work_button dd 0x7887A6
|
.work_button dd 0x7887A6
|
@ -9,7 +9,7 @@ SKIN_PARAMS \
|
|||||||
colors inactive = [binner=0xDDD7CF:\ ; border inner
|
colors inactive = [binner=0xDDD7CF:\ ; border inner
|
||||||
bouter=0x646464:\ ; border outer
|
bouter=0x646464:\ ; border outer
|
||||||
bframe=0xDDD7CF],\ ; border middle
|
bframe=0xDDD7CF],\ ; border middle
|
||||||
dtp = 'default.dtp' ; dtp colors
|
dtp = 'colors.dtp' ; dtp colors
|
||||||
|
|
||||||
SKIN_BUTTONS \
|
SKIN_BUTTONS \
|
||||||
close = [-31:1][27:18],\ ; buttons coordinates
|
close = [-31:1][27:18],\ ; buttons coordinates
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user