English
Language : 

SED1374 Datasheet, PDF (150/420 Pages) Epson Company – SED1374 Embedded Memory Color LCD Controller
Page 54
Epson Research and Development
Vancouver Design Center
int seVirtInit(int DevID, DWORD VirtX, DWORD * VirtY)
Description:
This function prepares the system for virtual screen operation. The programmer
passes the desired virtual width, in pixels, as VirtX. When the routine returns VirtY
will contain the maximum number of line that can be displayed at the requested
virtual width.
Parameter: DevID
VirtX
VirtY
- registered device ID
- horizontal size of virtual display in pixels.
(Must be greater or equal to physical size of display)
- pointer to an integer to receive the maximum number of displayable
lines of 'VirtX' width.
Return Value: ERR_OK - operation completed with no problems
ERR_HAL_BAD_ARG - returned in three situations:
1) the virtual width (VirtX) is greater than the largest possible width
(VirtX varies with color depth and ranges from 4096 pixels wider
than the panel at 1 bit-per-pixel down to 512 pixels wider than the
panel at 8 bit-per-pixel)
2) the virtual width is less than the physical width or
3) the maximum number of lines becomes less than the physical
number of lines
Note
The system must have been properly initialized prior to calling seVirtInit()
int seVirtMove(int DevID, int Screen, int x, int y)
Description:
This routine pans and scrolls the display after a virtual display has bee setup. In the
case where split screen operation is being used the WhichScreen argument specifies
which screen to move. The x and y parameters specify, in pixels, the starting location
in the virtual image for the top left corner of the applicable display.
Parameter: DevID
Screen
x
y
- registered device ID
- must be set to 1 or 2, or use the constants SCREEN1 or SCREEN2,
to identify which screen to base calculations on
- new starting X position in pixels
- new starting Y position in pixels
Return Value: ERR_OK - operation completed with no problems
ERR_HAL_BAD_ARG- there are several reasons for this return value:
1) WhichScreen is not SCREEN1 or SCREEN2.
2) the y argument is greater than the last available line less the screen height.
Note
seVirtInit() must be been called before calling seVirtMove().
SED1374
X26A-G-002-02
Programming Notes and Examples
Issue Date: 99/04/27