forked from KolibriOS/kolibrios
Remove $Revision$ from kernel file headers
- To better support git, remove SVN dependant `$Revision$` from file headers. This does *not* remove: the use of `__REV__` macro in `boostr.inc` and `kernel.asm` - Header Copyright notices updated to 2024. - Minimal white space cleanup (trailing spaces automatically removed). - Note: `asmxygen.py` has a *large* amount of whitespace cleanup, due to incorrect line endings. git-svn-id: svn://kolibrios.org@10051 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2023. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
||||
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;; ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
$Revision$
|
||||
|
||||
; Background graphics implementation
|
||||
|
||||
@@ -527,12 +526,12 @@ syscall_putarea_backgr: ; sysfn 25
|
||||
mov esi, ecx
|
||||
; ecx - size x, edx - size y
|
||||
mov ebp, edx
|
||||
|
||||
|
||||
lea ebp, [ebp*4]
|
||||
imul ebp, esi
|
||||
stdcall is_region_userspace, edi, ebp
|
||||
jnz .exit
|
||||
|
||||
|
||||
mov ebp, edx
|
||||
|
||||
dec ebp
|
||||
@@ -594,4 +593,4 @@ align 4
|
||||
|
||||
.exit:
|
||||
popad
|
||||
ret
|
||||
ret
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
||||
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;; ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
$Revision$
|
||||
|
||||
button.MAX_BUTTONS = 4095
|
||||
|
||||
@@ -71,7 +70,7 @@ syscall_button:
|
||||
;> 6 (30) = don't draw button
|
||||
;> 5 (29) = don't draw button frame when pressed
|
||||
;> esi = button color
|
||||
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
;; Undefine button:
|
||||
;> edx = pack[8(flags), 24(button identifier)]
|
||||
;> flags bits:
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
||||
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
$Revision$
|
||||
|
||||
WINDOW_MOVE_AND_RESIZE_FLAGS = \
|
||||
mouse.WINDOW_RESIZE_N_FLAG + \
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;; ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
$Revision$
|
||||
|
||||
dtext:
|
||||
; edx -> string
|
||||
@@ -19,18 +18,18 @@ dtext:
|
||||
; FF=3: UTF-8 8x16, FF=2: UTF-16LE 8x16
|
||||
; FF=1: cp866 8x16, FF=0: cp866 6x9
|
||||
; SSS = (font multiplier)-1
|
||||
; edi=1: force output
|
||||
; edi=1: force output
|
||||
; flag CF=1 means that we deal with asciiz but need to draw no more than esi symbols
|
||||
clc
|
||||
._:
|
||||
._:
|
||||
push ecx edx
|
||||
setc dl
|
||||
setc dl
|
||||
and eax, 0xFFFFFF
|
||||
and ecx, 1 shl 31
|
||||
shl edx, 29
|
||||
or eax, ecx
|
||||
or eax, ecx
|
||||
or eax, edx
|
||||
pop edx ecx
|
||||
pop edx ecx
|
||||
bt ecx, 30
|
||||
jc @f
|
||||
or eax, 1 shl 30
|
||||
@@ -93,8 +92,8 @@ dtext:
|
||||
or eax, -1
|
||||
mov [esp+28], edi
|
||||
jmp .1
|
||||
@@:
|
||||
and eax, 0x00ffffff
|
||||
@@:
|
||||
and eax, 0x00ffffff
|
||||
.1:
|
||||
mov edi, edx
|
||||
rep stosd
|
||||
@@ -155,13 +154,13 @@ deltaToScreen = 28
|
||||
js .done
|
||||
movzx ebx, word [esi]
|
||||
test dword [esp + 24], 1 shl 31
|
||||
jnz @f
|
||||
jnz @f
|
||||
test dword [esp + 24], 1 shl 29
|
||||
jz .u16Still
|
||||
@@:
|
||||
@@:
|
||||
test ebx, ebx
|
||||
jz .done
|
||||
.u16Still:
|
||||
.u16Still:
|
||||
inc esi
|
||||
inc esi
|
||||
cmp bx, 1419
|
||||
@@ -186,13 +185,13 @@ deltaToScreen = 28
|
||||
xor eax, eax
|
||||
call utf8to16
|
||||
test dword [esp + 24], 1 shl 31
|
||||
jnz @f
|
||||
jnz @f
|
||||
test dword [esp + 24], 1 shl 29
|
||||
jz .u8Still
|
||||
@@:
|
||||
@@:
|
||||
test eax, eax
|
||||
jz .done
|
||||
.u8Still:
|
||||
.u8Still:
|
||||
cmp eax, 1419
|
||||
jc @f
|
||||
xor eax, eax
|
||||
@@ -214,13 +213,13 @@ deltaToScreen = 28
|
||||
js .done
|
||||
movzx ebx, byte [esi]
|
||||
test dword [esp + 24], 1 shl 31
|
||||
jnz @f
|
||||
jnz @f
|
||||
test dword [esp + 24], 1 shl 29
|
||||
jz .866Still
|
||||
@@:
|
||||
@@:
|
||||
test ebx, ebx
|
||||
jz .done
|
||||
.866Still:
|
||||
.866Still:
|
||||
inc esi
|
||||
pushd esi edi 9
|
||||
lea ebx, [ebx*8+ebx+font1]
|
||||
@@ -238,13 +237,13 @@ deltaToScreen = 28
|
||||
js .done
|
||||
movzx eax, byte [esi]
|
||||
test dword [esp + 24], 1 shl 31
|
||||
jnz @f
|
||||
jnz @f
|
||||
test dword [esp + 24], 1 shl 29
|
||||
jz .8662uStill
|
||||
@@:
|
||||
jz .8662uStill
|
||||
@@:
|
||||
test eax, eax
|
||||
jz .done
|
||||
.8662uStill:
|
||||
.8662uStill:
|
||||
call ansi2uni_char
|
||||
shl eax, 4
|
||||
lea ebx, [eax+fontUni]
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2010-2023. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2010-2024. All rights reserved. ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;; ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
$Revision$
|
||||
|
||||
;================================
|
||||
;/////// public functions ///////
|
||||
@@ -390,11 +389,11 @@ mouse._.move_handler:
|
||||
; change cursor to resizing cursor
|
||||
shl esi, BSF sizeof.WDATA
|
||||
add esi, window_data
|
||||
|
||||
|
||||
; if resizing cursor we need (eax) isnt set already, set it
|
||||
cmp eax, [esi + WDATA.cursor]
|
||||
je @f
|
||||
|
||||
|
||||
; DEBUGF 1, "changing cursor to resizing\n"
|
||||
xchg eax, [esi + WDATA.cursor] ; set resizing cursor, prev cursor goes to eax
|
||||
; save previous cursor (will be restored when we'll get out of the resizing area)
|
||||
@@ -421,7 +420,7 @@ mouse._.move_handler:
|
||||
|
||||
test eax, eax
|
||||
jz .end1
|
||||
|
||||
|
||||
; restore prev cursor
|
||||
mov [esi + WDATA.temp_cursor], 0
|
||||
mov [esi + WDATA.cursor], eax
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;; ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
$Revision$
|
||||
|
||||
|
||||
include "skindata.inc"
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;; ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
$Revision$
|
||||
|
||||
|
||||
;
|
||||
; WINDOW SKIN DATA.
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
||||
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;; ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
$Revision$
|
||||
|
||||
;==============================================================================
|
||||
; public functions
|
||||
; public functions
|
||||
;==============================================================================
|
||||
|
||||
window.BORDER_SIZE = 5
|
||||
@@ -74,7 +73,7 @@ syscall_draw_window: ; system function 0
|
||||
|
||||
align 4
|
||||
; system function 1
|
||||
syscall_setpixel:
|
||||
syscall_setpixel:
|
||||
mov eax, ebx
|
||||
mov ebx, ecx
|
||||
mov ecx, edx
|
||||
@@ -92,7 +91,7 @@ syscall_setpixel:
|
||||
|
||||
align 4
|
||||
; system function 4
|
||||
syscall_writetext:
|
||||
syscall_writetext:
|
||||
|
||||
push esi ;check pointer on kernel address.
|
||||
test ecx, 0x80000000
|
||||
@@ -132,7 +131,7 @@ align 4
|
||||
|
||||
align 4
|
||||
; system function 13
|
||||
syscall_drawrect:
|
||||
syscall_drawrect:
|
||||
mov edi, edx ; color + gradient
|
||||
and edi, 0x80FFFFFF
|
||||
test bx, bx ; x.size
|
||||
@@ -184,8 +183,8 @@ syscall_drawline:
|
||||
|
||||
|
||||
align 4
|
||||
; system function 48
|
||||
syscall_display_settings:
|
||||
; system function 48
|
||||
syscall_display_settings:
|
||||
cmp ebx, .ftable.size-1
|
||||
ja .ret
|
||||
jmp dword[.ftable + ebx*4]
|
||||
@@ -406,7 +405,7 @@ align 4
|
||||
;; Set window shape scale:
|
||||
;> ebx = 1
|
||||
;> ecx = scale power (resulting scale is 2^ebx)
|
||||
syscall_set_window_shape:
|
||||
syscall_set_window_shape:
|
||||
mov edi, [current_slot]
|
||||
mov edi, [edi + APPDATA.window]
|
||||
|
||||
@@ -426,8 +425,8 @@ align 4
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
align 4
|
||||
; system function 67
|
||||
syscall_move_window:
|
||||
; system function 67
|
||||
syscall_move_window:
|
||||
mov edi, [current_slot]
|
||||
mov edi, [edi + APPDATA.window]
|
||||
|
||||
@@ -482,7 +481,7 @@ align 4
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
; system function 71
|
||||
syscall_window_settings:
|
||||
syscall_window_settings:
|
||||
mov edi, [current_slot]
|
||||
mov edi, [edi + APPDATA.window]
|
||||
or [edi + WDATA.fl_wstyle], WSTYLE_HASCAPTION
|
||||
@@ -2322,7 +2321,7 @@ align 4
|
||||
inc edx
|
||||
@@:
|
||||
shl eax, 28
|
||||
or ecx, eax
|
||||
or ecx, eax
|
||||
xor edi, edi
|
||||
stc
|
||||
call dtext._
|
||||
|
||||
Reference in New Issue
Block a user