Evkliptik пишет:
смутило, что в отладчике, на присвоении числа из другой переменной ошибка.
Где?
Скрипт
CODE:int col, ex, ey;
int UPLEFTx = 0;
int UPLEFTy = 0;
int DOWNRIGHTx = 0;
int DOWNRIGHTy = 0;
int UPLEFTx1920x1080=1373;
int UPLEFTy1920x1080=583;
int DOWNRIGHTTx1920x1080=1457;
int DOWNRIGHTTy1920x1080=607;
getdisplay(col, ex, ey);
ex=1920;ey=1080;//Ввел числа так как у меня другое разрешение
if(ex == 1920 && ey == 1080){
UPLEFTx = UPLEFTx1920x1080;
UPLEFTy = UPLEFTy1920x1080;
DOWNRIGHTx = DOWNRIGHTTx1920x1080;
DOWNRIGHTy = DOWNRIGHTTy1920x1080;
}
Отладка
CODE:int UPLEFTx = 0
int UPLEFTy = 0
int DOWNRIGHTx = 0
int DOWNRIGHTy = 0
int UPLEFTx1920x1080 = 1373
int UPLEFTy1920x1080 = 583
int DOWNRIGHTTx1920x1080 = 1457
int DOWNRIGHTTy1920x1080 = 607
getdisplay ( col'-842150451' , ex'-842150451' , ey'-842150451' )
ex = 1920
ey = 1080
if ( ex'1920' == 1920 && ey'1080' == 1080 )
UPLEFTx = UPLEFTx1920x1080'1373'
UPLEFTy = UPLEFTy1920x1080'583'
DOWNRIGHTx = DOWNRIGHTTx1920x1080'1457'
DOWNRIGHTy = DOWNRIGHTTy1920x1080'607'