int main(int, char **) { AhiInit(0); AhiTerm(); return 0; }
void QAhiScreen::disconnect() { AhiSurfFree(d_ptr->context, d_ptr->surface); d_ptr->surface = 0; AhiDevClose(d_ptr->context); d_ptr->context = 0; AhiTerm(); }
QAhiScreenPrivate::~QAhiScreenPrivate() { delete cursor; if (surface) { AhiSurfFree(context, surface); surface = 0; } if (context) { AhiDevClose(context); context = 0; } AhiTerm(); }