Ignore:
Timestamp:
Jul 20, 2016 6:55:11 AM (5 years ago)
Author:
riza
Message:

Re #1944: Allow native window to be set for video output window on SDL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/swig/pjsua2.i

    r5165 r5392  
    115115%template(CodecFmtpVector)              std::vector<pj::CodecFmtp>;      
    116116 
     117%ignore pj::WindowHandle::display; 
     118%ignore pj::WindowHandle::window; 
     119 
    117120/* pj::WindowHandle::setWindow() receives Surface object */ 
    118121#if defined(SWIGJAVA) && defined(__ANDROID__) 
     
    124127#endif 
    125128%} 
    126 %ignore pj::WindowHandle::display; 
    127 %ignore pj::WindowHandle::window; 
    128129%typemap(in) jobject surface { 
    129130    $1 = ($input? (jobject)ANativeWindow_fromSurface(jenv, $input): NULL); 
     
    131132%extend pj::WindowHandle { 
    132133    void setWindow(jobject surface) { $self->window = surface; } 
     134} 
     135#else 
     136%extend pj::WindowHandle { 
     137    void setWindow(long long hwnd) { $self->window = (void*)hwnd; } 
    133138} 
    134139#endif 
Note: See TracChangeset for help on using the changeset viewer.