Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MAKE_SPRITE and scaling.

Featured Replies

Edit: This is now working with the expected desired scale of 1.0. I am guessing this is scaling the sprite relative to the background. But still the reverse of what I would think.I cannot seem to find the reasoning behind the scale factors, and what they are scaling to what.For example, I have some .bmp's like this:mask1 - 97 pixels wide x 90 pixels highsprite1 - 145 pixels squarebackground - 145 pixels squareand for example this:MAKE_SPRITE( attitude_sprite_inner, // Name BMP_GAUGE_ATTITUDE_CARD1, // Res_ID attitude_sprite_horiz_list, // Next list attitude_fail, // Failure record IMAGE_USE_TRANSPARENCY | IMAGE_BILINEAR_COLOR, 0, // ASI flags 24, 25, // Mask x,y on BG 72, 73, // Sprite x,y center on bg 0.8, 0.8, // Sprite scaling factors // X Source_var, callback, scale MODULE_VAR_NONE, NULL, 0, // Y Source_var, callback, scale ATTITUDE_INDICATOR_PITCH_DEGREES, attitude_sprite_inner_cb, 2.0, // O Source_var, callback, scale ATTITUDE_INDICATOR_BANK_DEGREES, NULL, -1)While my sprite and background are the same width, so I felt I should use a scaling factor of 1, it comes out to small. And I find decreasing the scale factor below 1 makes the sprite larger, while increasing it above 1 makes it smaller. This is counter intuitive.Can anyone explain this to me, and how I can calculate an appropriate scale?Patrick

As far as I recall, it is exactly as you describe; you can recscale the sprite, but it is exactly the 1/(scale factor) as you might expect.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.