Subversion Repositories Kolibri OS

Rev

Rev 5836 | Rev 5851 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5836 Rev 5848
Line 190... Line 190...
190
    the moment of start of the system; it is more convenient, because
190
    the moment of start of the system; it is more convenient, because
191
    returns simply DWORD-value of the time counter.
191
    returns simply DWORD-value of the time counter.
192
  * System time can be set by function 22.
192
  * System time can be set by function 22.
Line 193... Line 193...
193
 
193
 
194
======================================================================
194
======================================================================
195
============ Function 4 - draw text string in the window. ============
195
=================== Function 4 - draw text string. ===================
196
======================================================================
196
======================================================================
197
Parameters:
197
Parameters:
198
  * eax = 4 - function number
198
  * eax = 4 - function number
199
  * ebx = [coordinate on axis x]*65536 + [coordinate on axis y]
199
  * ebx = X*65536+Y, coordinates in the window or buffer
200
  * ecx = 0xXYRRGGBB, where
200
  * ecx = 0xXXRRGGBB, where
201
    * RR, GG, BB specify text color
201
    * RR, GG, BB specify text color
202
    * X = ABFF (bits):
202
    * XX = ABFFCSSS (bits):
203
      * A=1 - output zero terminated string
203
      * A=1 - output zero terminated string
204
      * B=1 - fill background with the color edi
204
      * B=1 - fill background (color = edi)
205
      * FF specifies the font and encoding:
205
      * FF specifies the font and encoding:
206
        0 = 6x9  cp866
206
        0 = 6x9  cp866
207
        2 = 8x16 UTF-16LE
207
        2 = 8x16 UTF-16LE
208
        3 = 8x16 UTF-8
208
        3 = 8x16 UTF-8
209
    * Y = CDDD (bits):
209
      * C=0 - draw to the window,
210
      * C=1 redirect the output to the user area, specified in edi
210
        C=1 - draw to the user buffer (edi)
211
      * DDD = (size multiplier)-1, so 0 = x1, 7 = x8
211
      * SSS = (size multiplier)-1, so 0 = x1, 7 = x8
212
  * edx = pointer to the beginning of the string
212
  * edx = pointer to the beginning of the string
213
  * esi = for A=0 length of the string, for A=1 is ignored
213
  * esi = for A=0 length of the string, for A=1 is ignored
214
  * edi = for B=1 color to fill background,
214
  * edi = for B=1 color to fill background,
Line 215... Line 215...
215
          for C=1 pointer to user area for redirect
215
          for C=1 pointer to user buffer
216
 
216
 
217
Returned value:
217
Returned value:
218
  * function does not return value
-
 
219
Remarks:
-
 
220
  * C=1, pixel depth = 32 bits, user area is as follows:
-
 
221
    Xsize = dword
-
 
222
    Ysize = dword
218
  * function does not return value
-
 
219
Remarks:
-
 
220
  * You can not use B=1 and C=1 at the same time, since both use edi.
-
 
221
  * When SSS=0, font may be smoothed, depending on system setting.
-
 
222
  * User buffer structure:
-
 
223
Xsize       dd
Line 223... Line 224...
223
    rest of the area = Xsize*Ysize*4
224
Ysize       dd
224
  * You can not use B=1 and C=1 at the same time, since both use edi.
225
picture     rb  Xsize*Ysize*4  ; 32 bpp
225
 
226
 
226
======================================================================
227
======================================================================
Line 2113... Line 2114...
2113
    on ramdisk.
2114
    on ramdisk.
2114
  * User can change the skin statically by creating hisself
2115
  * User can change the skin statically by creating hisself
2115
    'default.skn' or dynamically with the application 'desktop'.
2116
    'default.skn' or dynamically with the application 'desktop'.
Line 2116... Line 2117...
2116
 
2117
 
2117
======================================================================
2118
======================================================================
2118
======== Function 48, subfunction 9 - font smoothing setting. ========
2119
====== Function 48, subfunction 9 - get font smoothing setting. ======
2119
======================================================================
2120
======================================================================
2120
Parameters:
2121
Parameters:
2121
  * eax = 48 - function number
2122
  * eax = 48 - function number
-
 
2123
  * ebx = 9 - subfunction number
-
 
2124
Returned value:
-
 
2125
  * eax = 2 - subpixel, 1 - anti-aliasing, 0 - off
-
 
2126
 
-
 
2127
======================================================================
-
 
2128
========== Function 48, subfunction 10 - set font smoothing. =========
-
 
2129
======================================================================
-
 
2130
Parameters:
-
 
2131
  * eax = 48 - function number
2122
  * ebx = 9 - subfunction number
2132
  * ebx = 10 - subfunction number
Line 2123... Line 2133...
2123
  * cl=0 - turn off font smoothing, else - turn on
2133
  * cl  = 2 - subpixel, 1 - anti-aliasing, 0 - off
2124
 
2134
 
2125
======================================================================
2135
======================================================================
2126
=========== Function 49 - Advanced Power Management (APM). ===========
2136
=========== Function 49 - Advanced Power Management (APM). ===========