File tree 4 files changed +51
-4
lines changed
4 files changed +51
-4
lines changed Original file line number Diff line number Diff line change @@ -39,5 +39,5 @@ Temporary Items
39
39
.apdisk
40
40
build_config_user.json
41
41
test_results /
42
- ** / container.txt
43
- ** .user.jsn
42
+ ** .user.jsn
43
+ ** .container.txt
Original file line number Diff line number Diff line change 35
35
pen::pen_creation_params creation_params;
36
36
NSWindow * window;
37
37
bool terminate_app = false ;
38
+ s32 window_scale = 1 ;
38
39
};
39
40
os_context s_ctx;
40
41
@@ -607,6 +608,9 @@ void pen_run_windowed(int argc, char** argv)
607
608
[s_ctx.window setAcceptsMouseMovedEvents: YES ];
608
609
[s_ctx.window center ];
609
610
[s_ctx.window registerForDraggedTypes: [NSArray arrayWithObjects: NSFilenamesPboardType , nil ]];
611
+
612
+ s_ctx.window_scale = [s_ctx.window backingScaleFactor ];
613
+
610
614
_update_window_frame ();
611
615
612
616
// creates an opengl or metal rendering context
@@ -741,8 +745,8 @@ bool input_redo_pressed()
741
745
742
746
void window_get_size (s32& width, s32& height)
743
747
{
744
- width = pen_window.width ;
745
- height = pen_window.height ;
748
+ width = pen_window.width * s_ctx. window_scale ;
749
+ height = pen_window.height * s_ctx. window_scale ;
746
750
}
747
751
748
752
f32 window_get_aspect ()
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version =" 1.0" >
4
+ <dict >
5
+ <key ></key >
6
+ <string ></string >
7
+ <key >ATSApplicationFontsPath </key >
8
+ <string >data/fonts </string >
9
+ <key >CFBundleDevelopmentRegion </key >
10
+ <string >$(DEVELOPMENT_LANGUAGE) </string >
11
+ <key >CFBundleExecutable </key >
12
+ <string >$(EXECUTABLE_NAME) </string >
13
+ <key >CFBundleIconFile </key >
14
+ <string ></string >
15
+ <key >CFBundleIdentifier </key >
16
+ <string >$(PRODUCT_BUNDLE_IDENTIFIER) </string >
17
+ <key >CFBundleInfoDictionaryVersion </key >
18
+ <string >6.0 </string >
19
+ <key >CFBundleName </key >
20
+ <string >$(PRODUCT_NAME) </string >
21
+ <key >CFBundlePackageType </key >
22
+ <string >$(PRODUCT_BUNDLE_PACKAGE_TYPE) </string >
23
+ <key >CFBundleShortVersionString </key >
24
+ <string >1.0 </string >
25
+ <key >CFBundleVersion </key >
26
+ <string >1 </string >
27
+ <key >LSMinimumSystemVersion </key >
28
+ <string >$(MACOSX_DEPLOYMENT_TARGET) </string >
29
+ <key >NSHighResolutionCapable </key >
30
+ <false />
31
+ <key >NSPrincipalClass </key >
32
+ <string >NSApplication </string >
33
+ <key >NSSupportsAutomaticTermination </key >
34
+ <true />
35
+ <key >NSSupportsSuddenTermination </key >
36
+ <false />
37
+ </dict >
38
+ </plist >
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ local function setup_osx()
24
24
}
25
25
add_pmtech_links ()
26
26
27
+ files
28
+ {
29
+ (pmtech_dir .. " core/template/osx/Info.plist" )
30
+ }
31
+
27
32
if _ACTION == " xcode4" then
28
33
install_name_tool = " cd ../../bin/osx && install_name_tool -add_rpath @executable_path/../../.. "
29
34
configuration " Debug"
You can’t perform that action at this time.
0 commit comments