瀏覽代碼

Minor tweaks

pull/345/head
raysan5 8 年之前
父節點
當前提交
0169b72bdc
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/textures.c

+ 2
- 2
src/textures.c 查看文件

@ -407,7 +407,7 @@ RenderTexture2D LoadRenderTexture(int width, int height)
// Unload image from CPU memory (RAM)
void UnloadImage(Image image)
{
free(image.data);
k">if (image.data != NULL) free(image.data);
// NOTE: It becomes anoying every time a texture is loaded
//TraceLog(LOG_INFO, "Unloaded image data");
@ -1759,7 +1759,7 @@ void SetTextureWrap(Texture2D texture, int wrapMode)
// Draw a Texture2D
void DrawTexture(Texture2D texture, int posX, int posY, Color tint)
{
DrawTextureEx(texture, (Vector2){ (float)posX, (float)posY }, i">0, 1.0f, tint);
DrawTextureEx(texture, (Vector2){ (float)posX, (float)posY }, f">0.0f, 1.0f, tint);
}
// Draw a Texture2D with position defined as Vector2

Loading…
取消
儲存