18 }
else if (opacity == 0) {
36 ret =
draw_image_with_clipping(raster, width, height, fmt, bitDepth, posX, posY,
clipULx,
clipULy,
clipLRx,
clipRLy);
58 u16 texOffsetX, texOffsetY;
63 if (clipX >= (
s16)(posX + width)) {
66 if (clipY >= (
s16)(posY + height)) {
88 texOffsetY =
abs(posY - clipY);
98 if (
texRect.lry + 1 >= height) {
123 texOffsetX =
abs(posX - clipX);
133 if (
texRect.lrx + 1 >= width) {
154 0, texOffsetX * 32, texOffsetY * 32, 1024, 1024);
180 s32 texOffsetX, texOffsetY;
184 if (scaleX < 0.01 || scaleY < 0.01) {
192 if (clipX >= (
s16)(posX + width * scaleX)) {
196 if (clipY >= (
s16)(posY + height * scaleY)) {
203 dsdx = 1.0f / scaleX * 1024.0f;
204 dtdy = 1.0f / scaleY * 1024.0f;
220 texOffsetY =
abs(posY - clipY) / scaleY * 32.0f;
257 texOffsetX =
abs(posX - clipX) / scaleX * 32.0f;
283 0, texOffsetX, texOffsetY,
dsdx,
dtdy);
324 s32 texOffsetX, texOffsetY;
334 if (scaleX < 0.01 || scaleY < 0.01) {
342 if (clipX >= (
s16)(posX + width * scaleX)) {
346 if (clipY >= (
s16)(posY + height * scaleY)) {
383 dsdx = 1.0f / scaleX * 1024.0f;
384 dtdy = 1.0f / scaleY * 1024.0f;
413 texOffsetX = texOffsetY = 0;
428 texOffsetY =
temp * 32.0f;
430 if (
texRect.lry + 1 == height){
432 }
else if (height <
texRect.lry + 1) {
435 temp = height * scaleY;
452 texOffsetX =
temp * 32.0f;
476 0, texOffsetX, texOffsetY,
dsdx,
dtdy);
BSS s32 PopupMenu_SelectedIndex
s32 integer_log(s32 number, u32 base)
s32 draw_image_with_clipping(IMG_PTR raster, u32 width, u32 height, s32 fmt, s32 bitDepth, s16 posX, s16 posY, u16 clipX, u16 clipY, u16 clipWidth, u16 clipHeight)
s32 draw_tiled_image(IMG_PTR raster, u32 width, u32 height, u8 fmt, u8 bitDepth, s16 posX, s16 posY, u16 clipX, u16 clipY, u16 clipWidth, u16 clipHeight, f32 scaleX, f32 scaleY)
s32 draw_adjustable_tiled_image(IMG_PTR raster, u32 width, u32 height, u8 fmt, u8 bitDepth, s16 posX, s16 posY, u16 clipX, u16 clipY, u16 clipWidth, u16 clipHeight, f32 scaleX, f32 scaleY)
s32 draw_ci_image_with_clipping(IMG_PTR raster, s32 width, s32 height, s32 fmt, s32 bitDepth, PAL_PTR palette, s16 posX, s16 posY, u16 clipULx, u16 clipULy, u16 clipLRx, u16 clipRLy, u8 opacity)