浏览代码

Review comments formating

pull/1486/head
raysan5 4 年前
父节点
当前提交
abdd57db0b
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. +3
    -4
      examples/core/core_window_letterbox.c

+ 3
- 4
examples/core/core_window_letterbox.c 查看文件

@ -72,10 +72,9 @@ int main(void)
virtualMouse.y = (mouse.y - (GetScreenHeight() - (gameScreenHeight*scale))*0.5f)/scale; virtualMouse.y = (mouse.y - (GetScreenHeight() - (gameScreenHeight*scale))*0.5f)/scale;
virtualMouse = ClampValue(virtualMouse, (Vector2){ 0, 0 }, (Vector2){ gameScreenWidth, gameScreenHeight }); virtualMouse = ClampValue(virtualMouse, (Vector2){ 0, 0 }, (Vector2){ gameScreenWidth, gameScreenHeight });
// Apply the same transformation as the virtual mouse to the real mouse, to work with raygui. // Apply the same transformation as the virtual mouse to the real mouse (i.e. to work with raygui)
// SetMouseOffset(-(GetScreenWidth() - (gameScreenWidth * scale)) * 0.5f, -(GetScreenHeight() - (gameScreenHeight * scale)) * 0.5f); //SetMouseOffset(-(GetScreenWidth() - (gameScreenWidth*scale))*0.5f, -(GetScreenHeight() - (gameScreenHeight*scale))*0.5f);
// SetMouseScale(1 / scale, 1 / scale); //SetMouseScale(1/scale, 1/scale);
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// Draw // Draw

||||||
x
 
000:0
正在加载...
取消
保存