1. int SelectAndInitDisplay(char *pcName)
    2. {
    3. int iError;
    4. g_ptDispOpr = GetDispOpr(pcName);
    5. if (!g_ptDispOpr)
    6. {
    7. return -1;
    8. }
    9. iError = g_ptDispOpr->DeviceInit();
    10. return iError;
    11. }

    代码跟踪

    1. SelectAndInitDisplay()
    2. GetDispOpr()
    3. g_ptDispOpr->DeviceInit()