Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class NonScalingBackgroundDrawable extends Drawable { int padding_top = 30; int padding_bottom = 10; int padding_left = 20; int padding_right = 10; Context context; View view; Drawable hosted_drawable; public NonScalingBackgroundDrawable(Context c, View v, int resource) { context = c; view = v; hosted_drawable = context.getResources().getDrawable(resource); } public void draw(Canvas canvas) { int w = hosted_drawable.getIntrinsicWidth(); int h = hosted_drawable.getIntrinsicHeight(); int view_w = view.getWidth(); int view_h = view.getHeight(); int padded_horizontal_room = view_w - (padding_left + padding_right); int padded_vertical_room = view_h - (padding_top + padding_bottom); float scale; float intrinsic_aspect_ratio = w / (float) h; float padded_canvas_aspect_ratio = padded_horizontal_room / (float) padded_vertical_room; if (intrinsic_aspect_ratio > padded_canvas_aspect_ratio) // Our source image is wider than the canvas, so we scale by width. scale = padded_horizontal_room / (float) w; else scale = padded_vertical_room / (float) h; int scaled_width = (int) (scale*w); int scaled_height = (int) (scale*h); // Here we fit the image into the bottom-right corner. int left = view_w - scaled_width - padding_right; int top = view_h - scaled_height - padding_bottom; int right = view_w - padding_right; int bottom = view_h - padding_bottom; hosted_drawable.setBounds( left, top, right, bottom ); hosted_drawable.draw(canvas); } public int getOpacity() { return hosted_drawable.getOpacity(); } public void setAlpha(int alpha) { hosted_drawable.setAlpha(alpha); } public void setColorFilter(ColorFilter cf) { hosted_drawable.setColorFilter(cf); } }