浏览代码

Move SetTargetFPS

#24
Leviathan 2 年之前
父节点
当前提交
49ca5aded5
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      example/source/app.d

+ 1 - 2
example/source/app.d

@@ -1,5 +1,4 @@
 import std.stdio;
 import std.stdio;
-
 import raylib;
 import raylib;
 
 
 void main()
 void main()
@@ -7,8 +6,8 @@ void main()
   writeln("Starting a raylib example.");
   writeln("Starting a raylib example.");
   validateRaylibBinding();
   validateRaylibBinding();
 
 
-  SetTargetFPS(60);
   InitWindow(800, 640, "Hello, World!");
   InitWindow(800, 640, "Hello, World!");
+  SetTargetFPS(60);
   scope (exit)
   scope (exit)
     CloseWindow(); // see https://dlang.org/spec/statement.html#scope-guard-statement
     CloseWindow(); // see https://dlang.org/spec/statement.html#scope-guard-statement