Lines Matching defs:mode
85 // convert video mode to textual description
86 wxString VideoModeToText(const wxVideoMode& mode);
100 MyVideoModeClientData(const wxVideoMode& m) : mode(m) { }
102 const wxVideoMode mode;
285 const wxVideoMode& mode = modes[nMode];
287 choiceModes->Append(VideoModeToText(mode),
288 new MyVideoModeClientData(mode));
299 sizerTop->Add(new wxButton(page, Display_ResetMode, _T("&Reset mode")),
319 wxString MyFrame::VideoModeToText(const wxVideoMode& mode)
322 s.Printf(_T("%dx%d"), mode.w, mode.h);
324 if ( mode.bpp )
326 s += wxString::Format(_T(", %dbpp"), mode.bpp);
329 if ( mode.refresh )
331 s += wxString::Format(_T(", %dHz"), mode.refresh);
378 GetClientObject(event.GetInt()))->mode) )
380 wxLogError(_T("Changing video mode failed!"));
416 // update the current mode text