Rev 755 | Rev 759 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 755 | Rev 757 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | ;; |
53 | ;; |
54 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
54 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 55... | Line 55... | ||
55 | 55 | ||
Line 56... | Line 56... | ||
56 | include 'macros.inc' |
56 | include 'macros.inc' |
Line 57... | Line 57... | ||
57 | 57 | ||
Line 58... | Line 58... | ||
58 | $Revision: 755 $ |
58 | $Revision: 757 $ |
Line 5171... | Line 5171... | ||
5171 | ret |
5171 | ret |
Line 5172... | Line 5172... | ||
5172 | 5172 | ||
5173 | paleholder: |
5173 | paleholder: |
Line -... | Line 5174... | ||
- | 5174 | ret |
|
- | 5175 | ||
- | 5176 | align 4 |
|
- | 5177 | set_screen: |
|
- | 5178 | cmp eax, [Screen_Max_X] |
|
- | 5179 | jne .set |
|
- | 5180 | ||
- | 5181 | cmp edx, [Screen_Max_Y] |
|
- | 5182 | jne .set |
|
- | 5183 | ret |
|
- | 5184 | .set: |
|
- | 5185 | pushfd |
|
- | 5186 | cli |
|
- | 5187 | ||
- | 5188 | mov [Screen_Max_X], eax |
|
- | 5189 | mov [Screen_Max_Y], edx |
|
- | 5190 | ||
- | 5191 | mov [screen_workarea.right],eax |
|
- | 5192 | mov [screen_workarea.bottom], edx |
|
- | 5193 | inc eax |
|
- | 5194 | shl eax, 2 ;32 bpp |
|
- | 5195 | mov [BytesPerScanLine], eax |
|
- | 5196 | push ebx |
|
- | 5197 | push esi |
|
- | 5198 | push edi |
|
- | 5199 | call repos_windows |
|
- | 5200 | mov eax, 0 |
|
- | 5201 | mov ebx, 0 |
|
- | 5202 | mov ecx, [Screen_Max_X] |
|
- | 5203 | mov edx, [Screen_Max_Y] |
|
- | 5204 | call calculatescreen |
|
- | 5205 | pop edi |
|
- | 5206 | pop esi |
|
- | 5207 | pop ebx |
|
- | 5208 | ||
Line 5174... | Line 5209... | ||
5174 | ret |
5209 | popfd |
5175 | 5210 | ret |
|
5176 | 5211 | ||
5177 | ; --------------- APM --------------------- |
5212 | ; --------------- APM --------------------- |