diff options
| author | Manolo Gouy <Manolo> | 2017-11-03 10:36:15 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-11-03 10:36:15 +0000 |
| commit | 54571fcacfffbccb191df0843cb5df6b881b8d85 (patch) | |
| tree | b803350b0a5f3d129fb0524d4d0024c92a04b1f8 | |
| parent | 3d53e5b496e20cddf9a44ff51cf582f9ee5916ab (diff) | |
Remove 3 deprecation warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm index a3fb55034..95382f50e 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm +++ b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm @@ -429,13 +429,13 @@ void Fl_Cocoa_Printer_Driver::draw_decorated_window(Fl_Window *win, int x_offset Fl_Display_Device::display_device()->set_current(); // send win to front and make it current NSString *title = [fl_xid(win) title]; [title retain]; - [fl_xid(win) setTitle:@""]; // temporarily set a void window title + [(NSWindow*)fl_xid(win) setTitle:@""]; // temporarily set a void window title win->show(); Fl::check(); // capture the window title bar with no title Fl_Shared_Image *top, *left, *bottom, *right; win->driver()->capture_titlebar_and_borders(top, left, bottom, right); - [fl_xid(win) setTitle:title]; // put back the window title + [(NSWindow*)fl_xid(win) setTitle:title]; // put back the window title this->set_current(); // back to the Fl_Paged_Device top->draw(x_offset, y_offset); // print the title bar top->release(); |
