forked from enlightenment/efl
ecore_cocoa: possibly avoid useless copies
This commit is contained in:
parent
b9cd3ac82d
commit
8d364f56f4
|
@ -346,8 +346,7 @@ ecore_cocoa_window_size_min_set(Ecore_Cocoa_Window *window,
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN(window);
|
EINA_SAFETY_ON_NULL_RETURN(window);
|
||||||
|
|
||||||
NSSize size = {w,h};
|
window->window.contentMinSize = NSMakeSize(w, h);
|
||||||
window->window.contentMinSize = size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
@ -357,8 +356,7 @@ ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN(window);
|
EINA_SAFETY_ON_NULL_RETURN(window);
|
||||||
|
|
||||||
NSSize size = {w,h};
|
window->window.contentMaxSize = NSMakeSize(w, h);
|
||||||
window->window.contentMaxSize = size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
@ -368,8 +366,7 @@ ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN(window);
|
EINA_SAFETY_ON_NULL_RETURN(window);
|
||||||
|
|
||||||
NSSize size = {w,h};
|
window->window.contentResizeIncrements = NSMakeSize(w, h);
|
||||||
window->window.contentResizeIncrements = size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
|
Loading…
Reference in New Issue