小编Luc*_*oom的帖子

iPhone Xr 的缺口尺寸(以像素为单位)

iPhone XriPhone Xs Max的缺口大小(以像素或点为单位)是多少?我知道它们用于 iPhone X,请参阅https://www.paintcodeapp.com/news/iphone-x-screen-demystified上的“iPhone X Cutout” 我相信 iPhone Xs 具有相同的尺寸。

我正在尝试制作一款将空间与像素紧密结合的游戏。

iphone size screen iphone-x iphone-xs-max

7
推荐指数
1
解决办法
4663
查看次数

将uint64_t转换为double后出现意外结果

在以下代码中:

#include <iostream>

...

uint64_t t1 = 1510763846;
uint64_t t2 = 1510763847;
double d1 = (double)t1;
double d2 = (double)t2;
// d1 == t2 => evaluates to true somehow?
// t1 == d2 => evaluates to true somehow?
// d1 == d2 => evaluates to true somehow?
// t1 == t2 => evaluates to false, of course.
std::cout << std::fixed << 
        "uint64_t: " << t1 << ", " << t2 << ", " <<
        "double: " << d1 << ", …
Run Code Online (Sandbox Code Playgroud)

c++ precision uint64

5
推荐指数
1
解决办法
598
查看次数

将所有图像添加到Package.AppXManifest会导致编译器警告

win8_logo_small.pngPackage.appxmanifestWindows 8商店项目的设置中指定了"小徽标" .当我创建商店包时,我收到此警告:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1052,9):
warning APPX1621: A mixture of images matching logical name 'win8_logo_small.png' exists
in this project with and without the "scale" or "targetsize" qualifier specified.
For predictable runtime behavior, explicitly specify the scale or target size
in each image asset's file name.
Run Code Online (Sandbox Code Playgroud)

虽然这只是一个警告,但我想知道微软希望我做些什么,因为图像比例变体的名称是自动生成的:

win8_logo_small.scale-80.png
win8_logo_small.scale-100.png
...
win8_logo_small.targetsize-16.png
win8_logo_small.targetsize-32.png
Run Code Online (Sandbox Code Playgroud)

如果我将xxx.targetsize文件重命名为类似xxx.scale-###.png并将其添加到项目中,Visual Studio会自动将文件复制到xxx.targetsize-##.png!

这是可以解决的问题吗?它需要解决还是仅仅是Windows RT包编译器中的错误?

compiler-warnings visual-studio microsoft-metro windows-8

4
推荐指数
1
解决办法
2987
查看次数