mirror of
https://github.com/fltk/fltk.git
synced 2026-05-25 00:53:39 +08:00
More accurate implementation of Fl_Cocoa_Window_Driver::decoration_sizes().
This commit is contained in:
@@ -1831,6 +1831,11 @@ static int get_window_frame_sizes(Fl_Window *win, int *pbx, int *pby) {
|
||||
return top;
|
||||
}
|
||||
|
||||
void Fl_Cocoa_Window_Driver::decoration_sizes(int *top, int *left, int *right, int *bottom) {
|
||||
*top = get_window_frame_sizes(pWindow, left, bottom);
|
||||
*right = *left;
|
||||
}
|
||||
|
||||
/*
|
||||
* smallest x coordinate in screen space of work area of menubar-containing display
|
||||
*/
|
||||
|
||||
@@ -256,13 +256,6 @@ void Fl_Cocoa_Window_Driver::hide() {
|
||||
}
|
||||
|
||||
|
||||
void Fl_Cocoa_Window_Driver::decoration_sizes(int *top, int *left, int *right, int *bottom) {
|
||||
*top = 24;
|
||||
*left = 2;
|
||||
*right = 2;
|
||||
*bottom = 2;
|
||||
}
|
||||
|
||||
int Fl_Cocoa_Window_Driver::scroll(int src_x, int src_y, int src_w, int src_h, int dest_x, int dest_y, void (*draw_area)(void*, int,int,int,int), void* data)
|
||||
{
|
||||
CGImageRef img = CGImage_from_window_rect(src_x, src_y, src_w, src_h);
|
||||
|
||||
Reference in New Issue
Block a user