diff --git a/examples/models/models_yaw_pitch_roll.c b/examples/models/models_yaw_pitch_roll.c index 77f80063..fdd0d6d9 100644 --- a/examples/models/models_yaw_pitch_roll.c +++ b/examples/models/models_yaw_pitch_roll.c @@ -114,23 +114,23 @@ int main(void) // Draw framebuffer texture (Ahrs Display) int centerX = framebuffer.texture.width/2; int centerY = framebuffer.texture.height/2; - float scaleFactor = 0.5f; BeginTextureMode(framebuffer); - + + ClearBackground(RAYWHITE); BeginBlendMode(BLEND_ALPHA); DrawTexturePro(texBackground, (Rectangle){ 0, 0, texBackground.width, texBackground.height }, - (Rectangle){ centerX, centerY, texBackground.width*scaleFactor, texBackground.height*scaleFactor}, - (Vector2){ texBackground.width/2*scaleFactor, texBackground.height/2*scaleFactor + pitchOffset*scaleFactor }, roll, WHITE); + (Rectangle){ centerX, centerY, texBackground.width, texBackground.height}, + (Vector2){ texBackground.width/2, texBackground.height/2 + pitchOffset }, roll, WHITE); DrawTexturePro(texPitch, (Rectangle){ 0, 0, texPitch.width, texPitch.height }, - (Rectangle){ centerX, centerY, texPitch.width*scaleFactor, texPitch.height*scaleFactor }, - (Vector2){ texPitch.width/2*scaleFactor, texPitch.height/2*scaleFactor + pitchOffset*scaleFactor }, roll, WHITE); + (Rectangle){ centerX, centerY, texPitch.width, texPitch.height }, + (Vector2){ texPitch.width/2, texPitch.height/2 + pitchOffset }, roll, WHITE); DrawTexturePro(texPlane, (Rectangle){ 0, 0, texPlane.width, texPlane.height }, - (Rectangle){ centerX, centerY, texPlane.width*scaleFactor, texPlane.height*scaleFactor }, - (Vector2){ texPlane.width/2*scaleFactor, texPlane.height/2*scaleFactor }, 0, WHITE); + (Rectangle){ centerX, centerY, texPlane.width, texPlane.height }, + (Vector2){ texPlane.width/2, texPlane.height/2 }, 0, WHITE); EndBlendMode(); diff --git a/examples/models/resources/angle_gauge.png b/examples/models/resources/angle_gauge.png index f7871de6..810097d7 100644 Binary files a/examples/models/resources/angle_gauge.png and b/examples/models/resources/angle_gauge.png differ diff --git a/examples/models/resources/background.png b/examples/models/resources/background.png index 69a74b72..88ece1fc 100644 Binary files a/examples/models/resources/background.png and b/examples/models/resources/background.png differ diff --git a/examples/models/resources/pitch.png b/examples/models/resources/pitch.png index 6d7a2336..82f89cd1 100644 Binary files a/examples/models/resources/pitch.png and b/examples/models/resources/pitch.png differ diff --git a/examples/models/resources/plane.png b/examples/models/resources/plane.png index 58951ea3..b4151384 100644 Binary files a/examples/models/resources/plane.png and b/examples/models/resources/plane.png differ diff --git a/examples/models/resources/plane_diffuse.png b/examples/models/resources/plane_diffuse.png index 8cf75c7d..c02a9e2f 100644 Binary files a/examples/models/resources/plane_diffuse.png and b/examples/models/resources/plane_diffuse.png differ