mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
uppsrc: small fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@14319 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
15b5955449
commit
e5b704f4f1
7 changed files with 9 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
template "Core console project" main;
|
||||
template "U++ Core console project" main;
|
||||
|
||||
option "Create header" header;
|
||||
option "Commandline loop" cmdline;
|
||||
|
|
|
|||
|
|
@ -87,7 +87,8 @@ void SystemDraw::SysDrawImageOp(int x, int y, const Image& img, Color color)
|
|||
CGContextDrawImage(cgHandle, CGRectMake(0, -isz.cy, isz.cx, isz.cy), sd.cgimg);
|
||||
CGContextRestoreGState(cgHandle);
|
||||
}
|
||||
cg_image_cache.Shrink(4 * 1024 * 768, 1000); // Cache must be after Paint because of PaintOnly!
|
||||
Size sz = Ctrl::GetPrimaryScreenArea().GetSize();
|
||||
cache.Shrink(4 * sz.cx * sz.cy, 1000); // Cache must be after Paint because of PaintOnly!
|
||||
}
|
||||
|
||||
// TODO: https://stackoverflow.com/questions/10733228/native-osx-lion-resize-cursor-for-custom-nswindow-or-nsview
|
||||
|
|
|
|||
|
|
@ -101,7 +101,8 @@ void SystemDraw::SysDrawImageOp(int x, int y, const Image& img, Color color)
|
|||
cairo_set_source_surface(cr, sd.surface, x, y);
|
||||
cairo_paint(cr);
|
||||
}
|
||||
cache.Shrink(4 * 1024 * 768, 1000); // Cache must be after Paint because of PaintOnly!
|
||||
Size sz = Ctrl::GetPrimaryScreenArea().GetSize();
|
||||
cache.Shrink(4 * sz.cx * sz.cy, 1000); // Cache must be after Paint because of PaintOnly!
|
||||
}
|
||||
|
||||
Draw& ImageDraw::Alpha()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
template "CtrlLib application with main window" main;
|
||||
template "U++ CtrlLib application with main window" main;
|
||||
|
||||
id "Main window class name" classname = PACKAGE;
|
||||
select("No layouts", "Generate layout file", "Main window has layout", "Main window has OK/Cancel")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
template "Basic CtrlLib application" main;
|
||||
template "U++ Basic CtrlLib application" main;
|
||||
|
||||
option "Create header" header;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
template "Skylark Web application" main;
|
||||
template "U++ Skylark Web application" main;
|
||||
|
||||
id "Application name" classname = PACKAGE;
|
||||
id "Main page root path" root = PACKAGE;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
template "SDL with Core package" main;
|
||||
template "U++ Core with SDL" main;
|
||||
|
||||
option "Create header" header;
|
||||
option "Initialize video" video;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue